toggle menu
http4k
LOCAL
jvm
switch theme
search in API
http4k-realtime-core
/
org.http4k.websocket
/
PushPullAdaptingWebSocket
Push
Pull
Adapting
Web
Socket
abstract
class
PushPullAdaptingWebSocket
:
Websocket
Inheritors
TestWebsocket
Members
Constructors
Push
Pull
Adapting
Web
Socket
Link copied to clipboard
constructor
(
)
Functions
close
Link copied to clipboard
abstract
fun
close
(
status
:
WsStatus
=
NORMAL
)
on
Close
Link copied to clipboard
open
override
fun
onClose
(
fn
:
(
WsStatus
)
->
Unit
)
on
Error
Link copied to clipboard
open
override
fun
onError
(
fn
:
(
Throwable
)
->
Unit
)
on
Message
Link copied to clipboard
open
override
fun
onMessage
(
fn
:
(
WsMessage
)
->
Unit
)
send
Link copied to clipboard
abstract
fun
send
(
message
:
WsMessage
)
trigger
Close
Link copied to clipboard
fun
triggerClose
(
status
:
WsStatus
=
NORMAL
)
trigger
Error
Link copied to clipboard
fun
triggerError
(
throwable
:
Throwable
)
trigger
Message
Link copied to clipboard
fun
triggerMessage
(
message
:
WsMessage
)