public interface SocketListener
Client
events.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.
|
void onDisconnect(java.lang.Throwable t)
t
- Throwable t is set if an error caused the disconnect.void onError(Error error)
error
- The Error
received.void onChannelMessage(ChannelMessage message)
message
- The ChannelMessage
received.void onChannelPresence(ChannelPresenceEvent presence)
presence
- The ChannelPresenceEvent
received.void onMatchmakerMatched(MatchmakerMatched matched)
matched
- The MatchmakerMatched
received.void onMatchData(MatchData matchData)
matchData
- The MatchData
received.void onMatchPresence(MatchPresenceEvent matchPresence)
matchPresence
- The MatchPresenceEvent
received.void onNotifications(NotificationList notifications)
notifications
- The list of Notification
received.void onStatusPresence(StatusPresenceEvent presence)
presence
- Updated StatusPresenceEvent
presence.void onStreamPresence(StreamPresenceEvent presence)
presence
- Updated StreamPresenceEvent
presence.void onStreamData(StreamData data)
data
- Stream StreamData
data received.void onPartyPresence(PartyPresenceEvent presence)
presence
- Updated PartyPresenceEvent
presence.void onPartyData(PartyData partyData)
partyData
- The PartyData
received.