Package com.gmt2001.httpwsserver
Interface WsFrameHandler
- All Known Implementing Classes:
WsAlertsPollsHandler
,WsPanelHandler
,WsPanelRemoteLoginHandler
,WsYTHandler
public interface WsFrameHandler
Represents a handler for WebSocket frames
- Author:
- gmt2001
-
Method Summary
Modifier and TypeMethodDescriptionGets theWsAuthenticationHandler
assigned to this endpointvoid
handleFrame
(ChannelHandlerContext ctx, WebSocketFrame frame) Handles the WebSocket frame and sends a response back to the client, if necessary Only gets called if theWsAuthenticationHandler
returnedtrue
register()
Registers thisWsFrameHandler
with theWebSocketFrameHandler
-
Method Details
-
register
WsFrameHandler register()Registers thisWsFrameHandler
with theWebSocketFrameHandler
- Returns:
-
getAuthHandler
WsAuthenticationHandler getAuthHandler()Gets theWsAuthenticationHandler
assigned to this endpoint- Returns:
- An
WsAuthenticationHandler
-
handleFrame
Handles the WebSocket frame and sends a response back to the client, if necessary Only gets called if theWsAuthenticationHandler
returnedtrue
- Parameters:
ctx
- TheChannelHandlerContext
of the sessionframe
- TheWebSocketFrame
to process
-