Class ToccoWebsocket
java.lang.Object
jakarta.websocket.Endpoint
ch.tocco.nice2.web.core.api.websocket.BaseWebsocket
ch.tocco.nice2.web.core.api.websocket.ToccoWebsocket
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoOnClose(jakarta.websocket.Session session) Called when the connection has been closed (called only once per instance)voidvoiddoOnMessage(jakarta.websocket.Session session, String message) Called when a message has arrived from the client that is bound to this instance.voiddoOnOpen(jakarta.websocket.Session session, jakarta.websocket.EndpointConfig config) Called when the connection has been established (called only once per instance)Methods inherited from class ch.tocco.nice2.web.core.api.websocket.BaseWebsocket
addListener, close, getUserProperties, onClose, onError, onOpen, sendMessage
-
Constructor Details
-
ToccoWebsocket
public ToccoWebsocket(org.slf4j.Logger logger, int idleTimeoutSeconds)
-
-
Method Details
-
doOnMessage
Description copied from class:BaseWebsocketCalled when a message has arrived from the client that is bound to this instance.- Specified by:
doOnMessagein classBaseWebsocket
-
doOnOpen
public void doOnOpen(jakarta.websocket.Session session, jakarta.websocket.EndpointConfig config) Description copied from class:BaseWebsocketCalled when the connection has been established (called only once per instance)- Overrides:
doOnOpenin classBaseWebsocket
-
doOnClose
public void doOnClose(jakarta.websocket.Session session) Description copied from class:BaseWebsocketCalled when the connection has been closed (called only once per instance)- Overrides:
doOnClosein classBaseWebsocket
-
doOnError
- Overrides:
doOnErrorin classBaseWebsocket
-