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 SocketListenert - Throwable t is set if an error caused the disconnect.public void onError(Error error)
onError in interface SocketListenererror - The Error received.public void onChannelMessage(ChannelMessage message)
onChannelMessage in interface SocketListenermessage - The ChannelMessage received.public void onChannelPresence(ChannelPresenceEvent presence)
onChannelPresence in interface SocketListenerpresence - The ChannelPresenceEvent received.public void onMatchmakerMatched(MatchmakerMatched matched)
onMatchmakerMatched in interface SocketListenermatched - The MatchmakerMatched received.public void onMatchData(MatchData matchData)
onMatchData in interface SocketListenermatchData - The MatchData received.public void onMatchPresence(MatchPresenceEvent matchPresence)
onMatchPresence in interface SocketListenermatchPresence - The MatchPresenceEvent received.public void onNotifications(NotificationList notifications)
onNotifications in interface SocketListenernotifications - The list of Notification received.public void onStatusPresence(StatusPresenceEvent presence)
onStatusPresence in interface SocketListenerpresence - Updated StatusPresenceEvent presence.public void onStreamPresence(StreamPresenceEvent presence)
onStreamPresence in interface SocketListenerpresence - Updated StreamPresenceEvent presence.public void onStreamData(StreamData data)
onStreamData in interface SocketListenerdata - Stream StreamData data received.public void onPartyPresence(PartyPresenceEvent presence)
onPartyPresence in interface SocketListenerpresence - Updated PartyPresenceEvent presence.public void onPartyData(PartyData partyData)
onPartyData in interface SocketListenerpartyData - The PartyData received.