Class SessionConnectEvent

All Implemented Interfaces:
Serializable

public class SessionConnectEvent extends AbstractSubProtocolEvent
Event raised when a new WebSocket client using a Simple Messaging Protocol (e.g. STOMP) as the WebSocket sub-protocol issues a connect request.

Note that this is not the same as the WebSocket session getting established but rather the client's first attempt to connect within the sub-protocol, for example sending the STOMP CONNECT frame.

Since:
4.0.3
Author:
Rossen Stoyanchev
See Also:
  • Constructor Details

    • SessionConnectEvent

      public SessionConnectEvent(Object source, Message<byte[]> message)
      Create a new SessionConnectEvent.
      Parameters:
      source - the component that published the event (never null)
      message - the connect message
    • SessionConnectEvent

      public SessionConnectEvent(Object source, Message<byte[]> message, @Nullable Principal user)