receive

abstract fun receive(source: McProxyConnection, destination: McProxyConnection, data: ByteArray): Boolean

Invoked when a message is received on the associated channel.

Return

true if a message should be marked as handled, false otherwise. Handled messages will not be forwarded to the destination.

Parameters

source

The McProxyConnection representing the connection sending the message.

destination

The McProxyConnection representing the connection receiving the message.

data

The byte array containing the received message data.