public abstract class AbstractSocketListener extends java.lang.Object implements SocketListener
Client
events.Constructor and Description |
---|
AbstractSocketListener() |
Modifier and Type | Method and Description |
---|---|
void |
onChannelMessage(ChannelMessage message)
Called when a new topic message has been received.
|
void |
onChannelPresence(ChannelPresenceEvent presence)
Called when a new topic presence update has been received.
|
void |
onDisconnect(java.lang.Throwable t)
Called when the client socket disconnects.
|
void |
onError(Error error)
Called when the client receives an error.
|
void |
onMatchData(MatchData matchData)
Called when a new match data is received.
|
void |
onMatchmakerMatched(MatchmakerMatched matched)
Called when a matchmaking has found a match.
|
void |
onMatchPresence(MatchPresenceEvent matchPresence)
Called when a new match presence update is received.
|
void |
onNotifications(NotificationList notifications)
Called when the client receives new notifications.
|
void |
onPartyData(PartyData partyData)
Called when a new party data is received.
|
void |
onPartyPresence(PartyPresenceEvent presence)
Called when the client receives party presence updates.
|
void |
onStatusPresence(StatusPresenceEvent presence)
Called when the client receives status presence updates.
|
void |
onStreamData(StreamData data)
Called when the client receives stream data.
|
void |
onStreamPresence(StreamPresenceEvent presence)
Called when the client receives stream presence updates.
|
public void onDisconnect(java.lang.Throwable t)
onDisconnect
in interface SocketListener
t
- Throwable t is set if an error caused the disconnect.public void onError(Error error)
onError
in interface SocketListener
error
- The Error
received.public void onChannelMessage(ChannelMessage message)
onChannelMessage
in interface SocketListener
message
- The ChannelMessage
received.public void onChannelPresence(ChannelPresenceEvent presence)
onChannelPresence
in interface SocketListener
presence
- The ChannelPresenceEvent
received.public void onMatchmakerMatched(MatchmakerMatched matched)
onMatchmakerMatched
in interface SocketListener
matched
- The MatchmakerMatched
received.public void onMatchData(MatchData matchData)
onMatchData
in interface SocketListener
matchData
- The MatchData
received.public void onMatchPresence(MatchPresenceEvent matchPresence)
onMatchPresence
in interface SocketListener
matchPresence
- The MatchPresenceEvent
received.public void onNotifications(NotificationList notifications)
onNotifications
in interface SocketListener
notifications
- The list of Notification
received.public void onStatusPresence(StatusPresenceEvent presence)
onStatusPresence
in interface SocketListener
presence
- Updated StatusPresenceEvent
presence.public void onStreamPresence(StreamPresenceEvent presence)
onStreamPresence
in interface SocketListener
presence
- Updated StreamPresenceEvent
presence.public void onStreamData(StreamData data)
onStreamData
in interface SocketListener
data
- Stream StreamData
data received.public void onPartyPresence(PartyPresenceEvent presence)
onPartyPresence
in interface SocketListener
presence
- Updated PartyPresenceEvent
presence.public void onPartyData(PartyData partyData)
onPartyData
in interface SocketListener
partyData
- The PartyData
received.