Factory

Constructors

Link copied to clipboard
constructor(connectionPayload: suspend () -> Map<String, Any?>? = { null }, pingIntervalMillis: Long = -1, pingPayload: Map<String, Any?>? = null, pongPayload: Map<String, Any?>? = null, connectionAcknowledgeTimeoutMs: Long, frameType: WsFrameType = WsFrameType.Text)
constructor()

Properties

Link copied to clipboard
open override val name: String

The name of the protocol as in the Sec-WebSocket-Protocol header

Functions

Link copied to clipboard
fun connectionAcknowledgeTimeoutMillis(connectionAcknowledgeTimeoutMillis: Long)
Link copied to clipboard
fun connectionPayload(connectionPayload: suspend () -> Map<String, Any?>)
Link copied to clipboard
open override fun create(webSocketConnection: WebSocketConnection, listener: WsProtocol.Listener, scope: CoroutineScope): WsProtocol

Create a WsProtocol

Link copied to clipboard
Link copied to clipboard
fun pingIntervalMillis(pingIntervalMillis: Long)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard