public interface ChannelListener
PlayerConnection
s
over specific channels.Modifier and Type | Method and Description |
---|---|
void |
handlePayload(PlayerConnection client,
String channel,
ChannelBuf data)
Handles the given
ChannelBuf data sent by the
PlayerConnection over the prescribed channel. |
void handlePayload(PlayerConnection client, String channel, ChannelBuf data)
ChannelBuf
data sent by the
PlayerConnection
over the prescribed channel.
The given channel stream passed in to the listener is always a copy of the original data received by the server to better handle concurrency across listeners.
client
- The client sending the datachannel
- The channel being useddata
- The actual raw data