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 to,
ServerSession from,
ServerMessage message)
Callback invoked when a message is received.
|
boolean onMessage(ServerSession to, ServerSession from, 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.
to - the session that received the messagefrom - the session that sent the messagemessage - the message sentCopyright © 2008-2012 Dojo Foundation. All Rights Reserved.