toggle menu
http4k
LOCAL
jvm
switch theme
search in API
http4k-realtime-core
/
org.http4k.websocket
/
WsMessage
Ws
Message
data
class
WsMessage
(
val
body
:
Body
,
val
mode
:
WsMessage.Mode
)
Members
Constructors
Ws
Message
Link copied to clipboard
constructor
(
value
:
String
,
mode
:
WsMessage.Mode
=
Mode.Text
)
constructor
(
value
:
ByteBuffer
,
mode
:
WsMessage.Mode
=
Mode.Binary
)
constructor
(
value
:
ByteArray
,
mode
:
WsMessage.Mode
=
Mode.Binary
)
constructor
(
value
:
InputStream
,
mode
:
WsMessage.Mode
=
Mode.Binary
)
constructor
(
body
:
Body
,
mode
:
WsMessage.Mode
)
Types
Companion
Link copied to clipboard
object
Companion
Mode
Link copied to clipboard
enum
Mode
:
Enum
<
WsMessage.Mode
>
Properties
body
Link copied to clipboard
val
body
:
Body
mode
Link copied to clipboard
val
mode
:
WsMessage.Mode
Functions
body
Link copied to clipboard
fun
body
(
new
:
Body
,
newMode
:
WsMessage.Mode
=
mode
)
:
WsMessage
body
String
Link copied to clipboard
fun
bodyString
(
)
:
String