Lineage
Toggle table of contents
0.1.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Lineage
backend-mod
/
ru.hytalemodding.lineage.backend.messaging
/
BackendMessagingClient
Backend
Messaging
Client
class
BackendMessagingClient
(
serverAddress
:
InetSocketAddress
,
secret
:
ByteArray
)
:
AutoCloseable
UDP messaging client for backend-mod.
Members
Constructors
Backend
Messaging
Client
Link copied to clipboard
constructor
(
serverAddress
:
InetSocketAddress
,
secret
:
ByteArray
)
Functions
close
Link copied to clipboard
open
override
fun
close
(
)
register
Channel
Link copied to clipboard
fun
registerChannel
(
id
:
String
,
handler
:
(
ByteArray
)
->
Unit
)
send
Link copied to clipboard
fun
send
(
channelId
:
String
,
payload
:
ByteArray
)
start
Link copied to clipboard
fun
start
(
)
unregister
Channel
Link copied to clipboard
fun
unregisterChannel
(
id
:
String
)