Factory

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)

Parameters

connectionPayload

a map of additional parameters to send in the "connection_init" message

pingIntervalMillis

the interval between two client-initiated pings or -1 to not send any ping. Default value: -1

pingPayload

the ping payload to send in "ping" messages or null to not send a payload

pongPayload

the pong payload to send in "pong" messages or null to not send a payload

connectionAcknowledgeTimeoutMs

the timeout for receiving the "connection_ack" message, in milliseconds

frameType

the type of the websocket frames to use. Default value: WsFrameType.Text


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)
fun Factory()