Package com.wowza.wms.websocket.model
Class WebSocketEventNotifyBase
- Object
-
- com.wowza.wms.websocket.model.WebSocketEventNotifyBase
-
- All Implemented Interfaces:
IWebSocketEventNotify
,IWebSocketEventNotify2
public class WebSocketEventNotifyBase extends Object implements IWebSocketEventNotify2
-
-
Constructor Summary
Constructors Constructor Description WebSocketEventNotifyBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCreate(IWebSocketSession webSocketSession)
Trigger when WebSocket session is createdvoid
onDestroy(IWebSocketSession webSocketSession)
Triggered when WebSocket session is destroyedvoid
onIdle(IWebSocketSession webSocketSession)
Triggered for idle eventsvoid
onMessage(IWebSocketSession webSocketSession, WebSocketMessage message)
Triggered when WebSocket message (binary or text) is received (control messages are not included).
-
-
-
Method Detail
-
onCreate
public void onCreate(IWebSocketSession webSocketSession)
Trigger when WebSocket session is created- Specified by:
onCreate
in interfaceIWebSocketEventNotify
- Parameters:
webSocketSession
- WebSocket session
-
onDestroy
public void onDestroy(IWebSocketSession webSocketSession)
Triggered when WebSocket session is destroyed- Specified by:
onDestroy
in interfaceIWebSocketEventNotify
- Parameters:
webSocketSession
- WebSocket session
-
onMessage
public void onMessage(IWebSocketSession webSocketSession, WebSocketMessage message)
Triggered when WebSocket message (binary or text) is received (control messages are not included).- Specified by:
onMessage
in interfaceIWebSocketEventNotify
- Parameters:
webSocketSession
- WebSocket sessionmessage
- WebSocket message
-
onIdle
public void onIdle(IWebSocketSession webSocketSession)
Triggered for idle events- Specified by:
onIdle
in interfaceIWebSocketEventNotify2
- Parameters:
webSocketSession
- WebSocket session
-
-