WebSocketSession

scamper.http.websocket.WebSocketSession
See theWebSocketSession companion trait

Provides factory for WebSocketSession.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def forClient(conn: WebSocketConnection, id: String, target: Uri, version: String, deflate: Boolean): WebSocketSession

Wraps WebSocket session around an already established client connection.

Wraps WebSocket session around an already established client connection.

Value parameters

conn

WebSocket connection

deflate

indicates whether permessage-deflate is enabled

id

WebSocket identifier

target

target URI for which connection was established

version

WebSocket protocol version

Attributes

def forClient(socket: Socket, id: String, target: Uri, version: String, deflate: Boolean): WebSocketSession

Wraps WebSocket session around an already established client connection.

Wraps WebSocket session around an already established client connection.

Value parameters

deflate

indicates whether permessage-deflate is enabled

id

WebSocket identifier

socket

socket from which WebSocket connection is constructed

target

target URI for which connection was established

version

WebSocket protocol version

Attributes

def forServer(conn: WebSocketConnection, id: String, target: Uri, version: String, deflate: Boolean): WebSocketSession

Wraps WebSocket session around an already established server connection.

Wraps WebSocket session around an already established server connection.

Value parameters

conn

WebSocket connection

deflate

indicates whether permessage-deflate is enabled

id

WebSocket identifier

target

target URI for which connection was established

version

WebSocket protocol version

Attributes

def forServer(socket: Socket, id: String, target: Uri, version: String, deflate: Boolean): WebSocketSession

Wraps WebSocket session around an already established server connection.

Wraps WebSocket session around an already established server connection.

Value parameters

deflate

indicates whether permessage-deflate is enabled

id

WebSocket identifier

socket

socket from which WebSocket connection is constructed

target

target URI for which connection was established

version

WebSocket protocol version

Attributes