public static interface Session.ConnectionListener
Modifier and Type | Method and Description |
---|---|
void |
onConnectionCreated(Session session,
Connection connection)
Invoked when another client connects to the session.
|
void |
onConnectionDestroyed(Session session,
Connection connection)
Invoked when another client leaves the session.
|
void onConnectionCreated(Session session, Connection connection)
Session.SessionListener.onConnected(Session session)
method
is called.session
- The session.connection
- The new connection in the session.void onConnectionDestroyed(Session session, Connection connection)
Session.SessionListener.onDisconnected(Session session)
method is called.session
- The session.connection
- The connection that left the session the session.