Package com.gmt2001.wsclient
Interface WsClientFrameHandler
- All Known Implementing Classes:
EventSub
,TwitchMessageInterface
,WSPinger
public interface WsClientFrameHandler
Represents a handler for WebSocket client frames
- Author:
- gmt2001
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleFrame
(ChannelHandlerContext ctx, WebSocketFrame frame) Handles the WebSocket frame and sends a response back to the server, if necessaryvoid
Handles the handshake complete eventvoid
onClose()
Handles the channel closing for any reason.
-
Method Details
-
handleFrame
Handles the WebSocket frame and sends a response back to the server, if necessary- Parameters:
ctx
- TheChannelHandlerContext
of the sessionframe
- TheWebSocketFrame
to process
-
handshakeComplete
Handles the handshake complete event- Parameters:
ctx
- TheChannelHandlerContext
of the session
-
onClose
void onClose()Handles the channel closing for any reason.
-