toggle menu
modelix.core
8.16.0
common
switch theme
search in API
light-model-client
/
org.modelix.client.light
/
WebsocketConnection
Websocket
Connection
class
WebsocketConnection
(
val
httpClient
:
HttpClient
,
val
url
:
String
)
:
LightModelClient.IConnection
Members
Constructors
Websocket
Connection
Link copied to clipboard
constructor
(
httpClient
:
HttpClient
,
url
:
String
)
Properties
coroutine
Scope
Link copied to clipboard
val
coroutineScope
:
CoroutineScope
http
Client
Link copied to clipboard
val
httpClient
:
HttpClient
outgoing
Messages
Channel
Link copied to clipboard
val
outgoingMessagesChannel
:
Channel
<
MessageFromClient
>
url
Link copied to clipboard
val
url
:
String
Functions
connect
Link copied to clipboard
open
override
fun
connect
(
messageReceiver
:
(
message
:
MessageFromServer
)
->
Unit
)
disconnect
Link copied to clipboard
open
override
fun
disconnect
(
)
send
Message
Link copied to clipboard
open
override
fun
sendMessage
(
message
:
MessageFromClient
)