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

public static class NotificationWebsocketDefinition.NotificationWebsocket extends BaseWebsocket
  • Constructor Details

    • NotificationWebsocket

      protected NotificationWebsocket(org.slf4j.Logger logger, int idleTimeoutSeconds)
  • Method Details

    • doOnMessage

      public void doOnMessage(jakarta.websocket.Session session, String message)
      Description copied from class: BaseWebsocket
      Called when a message has arrived from the client that is bound to this instance.
      Specified by:
      doOnMessage in class BaseWebsocket
    • 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 class BaseWebsocket
    • 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 class BaseWebsocket
    • doOnError

      public void doOnError(jakarta.websocket.Session session, Throwable cause)
      Overrides:
      doOnError in class BaseWebsocket