public static interface RespokeGroup.Listener
Modifier and Type | Method and Description |
---|---|
void |
onGroupMessage(java.lang.String message,
RespokeEndpoint endpoint,
RespokeGroup sender,
java.util.Date timestamp)
Receive a notification that a group message has been received
|
void |
onJoin(RespokeConnection connection,
RespokeGroup sender)
Receive a notification that an connection has joined this group.
|
void |
onLeave(RespokeConnection connection,
RespokeGroup sender)
Receive a notification that an connection has left this group.
|
void onJoin(RespokeConnection connection, RespokeGroup sender)
connection
- The RespokeConnection that joined the groupsender
- The RespokeGroup that the connection has joinedvoid onLeave(RespokeConnection connection, RespokeGroup sender)
connection
- The RespokeConnection that left the groupsender
- The RespokeGroup that the connection has leftvoid onGroupMessage(java.lang.String message, RespokeEndpoint endpoint, RespokeGroup sender, java.util.Date timestamp)
message
- The body of the messageendpoint
- The endpoint that sent the messagesender
- The group that received the messagetimestamp
- The timestamp of when the message was sent.