abstract class AbstractWebSocketSession<T : Any> : NativeWebSocketSession
An abstract base class for implementations of WebSocketSession.
Author
Rossen Stoyanchev
Since
4.0
AbstractWebSocketSession(attributes: MutableMap<String, Any>)
Create a new instance and associate the given attributes with it. |
fun close(): Unit fun close(status: CloseStatus): Unit |
|
open fun getAttributes(): MutableMap<String, Any> |
|
open fun getNativeSession(): T open fun <R : Any> getNativeSession(requiredType: Class<R>): R |
|
open fun initializeNativeSession(session: T): Unit |
|
fun sendMessage(message: WebSocketMessage<*>): Unit |
|
open fun toString(): String |