Class 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:
    Serialized Form
    • Constructor Detail

      • WsSessionIdentifier

        public WsSessionIdentifier()
        Default constructor
      • WsSessionIdentifier

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

      • 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