receiveOnServer

fun receiveOnServer(receiver: suspend (packet: T, context: ServerPacketContext) -> Unit)(source)

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