Class SocketEvent

    • Method Detail

      • getChannel

        public String getChannel()
        Returns the <o:socket channel>.
        Returns:
        The web socket channel name.
      • getUser

        public <S extends Serializable> S getUser()
        Returns the current <o:socket user>, if any.
        Type Parameters:
        S - The generic type of the user identifier.
        Returns:
        The current web socket user identifier, if any.
        Throws:
        ClassCastException - When S is of wrong type.
      • getPreviousUser

        public <S extends Serializable> S getPreviousUser()
        Returns the previous <o:socket user>, if any.
        Type Parameters:
        S - The generic type of the user identifier.
        Returns:
        The previous web socket user identifier, if any.
        Throws:
        ClassCastException - When S is of wrong type.
        Since:
        3.2
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object