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 TypeMethodDescriptionvoidhandleFrame(ChannelHandlerContext ctx, WebSocketFrame frame) Handles the WebSocket frame and sends a response back to the server, if necessaryvoidHandles the handshake complete eventvoidonClose()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- TheChannelHandlerContextof the sessionframe- TheWebSocketFrameto process
-
handshakeComplete
Handles the handshake complete event- Parameters:
ctx- TheChannelHandlerContextof the session
-
onClose
void onClose()Handles the channel closing for any reason.
-