Class WsSessionIdentifier

java.lang.Object
ch.colabproject.colab.api.ws.message.WsMessage
ch.colabproject.colab.api.ws.message.WsSessionIdentifier
All Implemented Interfaces:
ch.colabproject.colab.generator.model.interfaces.WithJsonDiscriminator, Serializable

public class WsSessionIdentifier extends WsMessage
Message sent to each client as soon as they initialize the websocket connection.
Author:
maxence
See Also:
  • Constructor Details

    • WsSessionIdentifier

      public WsSessionIdentifier()
      Default constructor
    • WsSessionIdentifier

      public WsSessionIdentifier(String sessionId)
      create a message based on a websocket session
      Parameters:
      sessionId - client session id
  • Method Details

    • getSessionId

      public String getSessionId()
      Returns:
      the socket ID to send to the client
    • setSessionId

      public void setSessionId(String sessionId)
      Set session id
      Parameters:
      sessionId - session id
    • toString

      public String toString()
      Overrides:
      toString in class Object