Class WampEvent

java.lang.Object
ch.rasc.wamp2spring.event.WampEvent
Direct Known Subclasses:
WampDisconnectEvent, WampProcedureEvent, WampSessionEstablishedEvent, WampSubscriptionEvent

public abstract class WampEvent extends Object
Base class for the WAMP events
  • Constructor Details

    • WampEvent

      public WampEvent(Long wampSessionId, String webSocketSessionId, @Nullable Principal principal)
  • Method Details

    • getWebSocketSessionId

      public String getWebSocketSessionId()
      Returns an unique session identifier. Created by the Spring WebSocket layer.
    • getPrincipal

      @Nullable public Principal getPrincipal()
      Return a Principal instance containing the name of the authenticated user.

      If the user has not been authenticated, the method returns null.

    • getWampSessionId

      public Long getWampSessionId()
      Returns the unique WAMP session identifier. There is a one-to-one relation with the getWebSocketSessionId().