Factory

class Factory : WsProtocol.Factory

A factory for GraphQLWsProtocol.

Constructors

Link copied to clipboard
fun Factory(    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)
Link copied to clipboard
fun Factory(    connectionPayload: Map<String, Any?>?,     pingIntervalMillis: Long = -1,     pingPayload: Map<String, Any?>? = null,     pongPayload: Map<String, Any?>? = null,     connectionAcknowledgeTimeoutMs: Long,     frameType: WsFrameType = WsFrameType.Text)
Link copied to clipboard
fun Factory()

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
fun frameType(frameType: WsFrameType)
Link copied to clipboard
fun pingIntervalMillis(pingIntervalMillis: Long)
Link copied to clipboard
fun pingPayload(pingPayload: Map<String, Any?>?)
Link copied to clipboard
fun pongPayload(pongPayload: Map<String, Any?>?)
Link copied to clipboard
fun webSocketPayloadComposer(webSocketPayloadComposer: WebSocketPayloadComposer)

Properties

Link copied to clipboard
open override val name: String

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