receiveOnClient

fun receiveOnClient(receiver: suspend (packet: T, context: ClientPacketContext) -> Unit)(source)

Executes the given receiver as a callback when this packet is received on the client-side.