fun Route.webSocket(protocol: String? = null, handler: suspend DefaultWebSocketServerSession.() -> Unit): Unit
Bind websocket at the current route optionally checking for websocket protocol (ignored if fun Route.
Bind websocket at the current route optionally checking for websocket protocol (ignored if fun Route.webSocket(path: String, protocol: String? = null, handler: suspend DefaultWebSocketServerSession.() -> Unit): Unit
Bind websocket at the current route + path optionally checking for websocket protocol (ignored if |
|
fun Route.webSocketRaw(path: String, protocol: String? = null, handler: suspend WebSocketServerSession.() -> Unit): Unit fun Route.webSocketRaw(path: String, protocol: String? = null, negotiateExtensions: Boolean = false, handler: suspend WebSocketServerSession.() -> Unit): Unit
Bind RAW websocket at the current route + path optionally checking for websocket protocol (ignored if fun Route.webSocketRaw(protocol: String? = null, handler: suspend WebSocketServerSession.() -> Unit): Unit fun Route.webSocketRaw(protocol: String? = null, negotiateExtensions: Boolean = false, handler: suspend WebSocketServerSession.() -> Unit): Unit
Bind RAW websocket at the current route optionally checking for websocket protocol (ignored if fun Route.
Bind RAW websocket at the current route optionally checking for websocket protocol (ignored if |