From 8883419bfcec00947863741d48dbd89cc877615a Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Thu, 4 Apr 2019 13:10:28 +0200 Subject: API documentation for KVision 0.0.32 --- api/pl.treksoft.kvision.remote/-socket/index.html | 104 ++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 api/pl.treksoft.kvision.remote/-socket/index.html (limited to 'api/pl.treksoft.kvision.remote/-socket/index.html') diff --git a/api/pl.treksoft.kvision.remote/-socket/index.html b/api/pl.treksoft.kvision.remote/-socket/index.html new file mode 100644 index 00000000..215e6db9 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-socket/index.html @@ -0,0 +1,104 @@ + + + +Socket - kvision + + + +kvision / pl.treksoft.kvision.remote / Socket
+
+

Socket

+class Socket +

A websocket client implementation.

+

Constructors

+ + + + + + + +
+

<init>

+
+Socket() +

A websocket client implementation.

+
+

Properties

+ + + + + + + +
+

state

+
+val state: Short
+

Functions

+ + + + + + + + + + + + + + + + + + + + + + + +
+

close

+
+fun close(code: Short = 1000): Unit +

Close a websocket.

+
+

connect

+
+suspend fun connect(url: String, retryDelay: Long = 1000): Unit +

Connect to a websocket.

+
+

isClosed

+
+fun isClosed(): Boolean +

Returns if a websocket is closed.

+
+

receive

+
+suspend fun receive(): String +

Receive a string from a websocket.

+
+

send

+
+fun send(obj: String): Unit +

Send string to a websocket.

+
+

Extension Functions

+ + + + + + + +
+

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.

+
+ + -- cgit