spring-framework / org.springframework.web.socket.messaging / SessionDisconnectEvent / <init>

<init>

SessionDisconnectEvent(source: Any, message: Message<ByteArray>, sessionId: String, closeStatus: CloseStatus)

Create a new SessionDisconnectEvent.

Parameters

source - the component that published the event (never null)

message - the message (never null)

sessionId - the disconnect message

closeStatus - the status object

SessionDisconnectEvent(source: Any, message: Message<ByteArray>, sessionId: String, closeStatus: CloseStatus, @Nullable user: Principal)

Create a new SessionDisconnectEvent.

Parameters

source - the component that published the event (never null)

message - the message (never null)

sessionId - the disconnect message

closeStatus - the status object

user - the current session user