spring-framework / org.springframework.web.socket.adapter / AbstractWebSocketSession / <init>

<init>

AbstractWebSocketSession(@Nullable attributes: MutableMap<String, Any>)

Create a new instance and associate the given attributes with it.

Parameters

attributes - attributes from the HTTP handshake to associate with the WebSocket session; the provided attributes are copied, the original map is not used.