public static interface ServerSession.MessageListener extends ServerSession.ServerSessionListener
Listeners objects that implement this interface will be notified of message arrival.
Modifier and Type | Method and Description |
---|---|
boolean |
onMessage(ServerSession session,
ServerSession sender,
ServerMessage message)
Callback invoked when a message is received.
|
boolean onMessage(ServerSession session, ServerSession sender, ServerMessage message)
Callback invoked when a message is received.
Implementers can decide to return false to signal that the message should not be processed, meaning that other listeners will not be notified and that the message will be discarded.
session
- the session that received the messagesender
- the session that sent the messagemessage
- the message sentCopyright © 2008–2016 The CometD Project. All rights reserved.