function webSocket
source · line 42public
public fun webSocket(options: WebSocketOptions = webSocketOptions(), onSession: suspend (WebSocketContext, AsyncWebSocketSession) -> Unit): HttpResult
Requests an HTTP/1.1 upgrade; the session callback starts only after the HTTP pipeline exits.
parameter options
source · line 43public
options: WebSocketOptions = webSocketOptions()
parameter onSession
source · line 44public
onSession: suspend (WebSocketContext, AsyncWebSocketSession) -> Unit