spring-framework / org.springframework.web.socket.messaging / SessionConnectEvent

SessionConnectEvent

open class SessionConnectEvent : 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.

Author
Rossen Stoyanchev

Since
4.0.3

Constructors

<init>

SessionConnectEvent(source: Any, message: Message<ByteArray>)

Create a new SessionConnectEvent.

SessionConnectEvent(source: Any, message: Message<ByteArray>, user: Principal)