Skip to main content

NetworkEvents

NetworkEvents posts callbacks when custom network data is received from the other side (client or server).

Events

MethodWhen
onCustomDataReceived { event -> ... }Custom network data is received.

Example

NetworkEvents.onCustomDataReceived { event ->
println "Received custom data: ${event.data}"
}