public static interface Session.SignalListener
Modifier and Type | Method and Description |
---|---|
void |
onSignalReceived(Session session,
java.lang.String type,
java.lang.String data,
Connection connection)
Called when a signal is received in the session.
|
void onSignalReceived(Session session, java.lang.String type, java.lang.String data, Connection connection)
session
- The session in which the signal was sent.type
- The type string of the signal.data
- The signal data.connection
- The connection identifying the client that sent the
message. This value can be null
.