kvision / pl.treksoft.kvision.remote / DummyWebSocketSession

DummyWebSocketSession

open class DummyWebSocketSession

Constructors

<init>

DummyWebSocketSession()

Functions

close

open fun close(): Unit
open fun close(status: <ERROR CLASS>): Unit

getAcceptedProtocol

open fun getAcceptedProtocol(): String?

getAttributes

open fun getAttributes(): MutableMap<String, Any>

getBinaryMessageSizeLimit

open fun getBinaryMessageSizeLimit(): Int

getExtensions

open fun getExtensions(): MutableList<<ERROR CLASS>>

getHandshakeHeaders

open fun getHandshakeHeaders(): <ERROR CLASS>

getId

open fun getId(): String

getLocalAddress

open fun getLocalAddress(): InetSocketAddress?

getPrincipal

open fun getPrincipal(): Principal?

getRemoteAddress

open fun getRemoteAddress(): InetSocketAddress?

getTextMessageSizeLimit

open fun getTextMessageSizeLimit(): Int

getUri

open fun getUri(): URI?

isOpen

open fun isOpen(): Boolean

sendMessage

open fun sendMessage(message: <ERROR CLASS><out <ERROR CLASS>>): Unit

setBinaryMessageSizeLimit

open fun setBinaryMessageSizeLimit(messageSizeLimit: Int): Unit

setTextMessageSizeLimit

open fun setTextMessageSizeLimit(messageSizeLimit: Int): Unit

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.