Class NotificationWebsocketDefinition.NotificationWebsocket
java.lang.Object
jakarta.websocket.Endpoint
ch.tocco.nice2.web.core.api.websocket.BaseWebsocket
ch.tocco.nice2.notificationcenter.impl.NotificationWebsocketDefinition.NotificationWebsocket
- Enclosing class:
NotificationWebsocketDefinition
-
Constructor Summary
ModifierConstructorDescriptionprotected
NotificationWebsocket
(org.slf4j.Logger logger, int idleTimeoutSeconds) -
Method Summary
Modifier and TypeMethodDescriptionvoid
doOnClose
(jakarta.websocket.Session session) Called when the connection has been closed (called only once per instance)void
void
doOnMessage
(jakarta.websocket.Session session, String message) Called when a message has arrived from the client that is bound to this instance.void
doOnOpen
(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
-
NotificationWebsocket
protected NotificationWebsocket(org.slf4j.Logger logger, int idleTimeoutSeconds)
-
-
Method Details
-
doOnMessage
Description copied from class:BaseWebsocket
Called when a message has arrived from the client that is bound to this instance.- Specified by:
doOnMessage
in classBaseWebsocket
-
doOnOpen
public void doOnOpen(jakarta.websocket.Session session, jakarta.websocket.EndpointConfig config) Description copied from class:BaseWebsocket
Called when the connection has been established (called only once per instance)- Overrides:
doOnOpen
in classBaseWebsocket
-
doOnClose
public void doOnClose(jakarta.websocket.Session session) Description copied from class:BaseWebsocket
Called when the connection has been closed (called only once per instance)- Overrides:
doOnClose
in classBaseWebsocket
-
doOnError
- Overrides:
doOnError
in classBaseWebsocket
-