The server is solely responsible for creating channels and adding and removing clients from channels. If desired, a client can request that a channel be created or its session be joined to or removed from the channel by sending an application-specific message to the server (using its {@link ServerSession}).
When the server adds a client session to a channel, the client's {@link ServerSessionListener}'s {@link ServerSessionListener#joinedChannel joinedChannel} method isinvoked with that client channel, returning the client's {@link ClientChannelListener} for the channel. A{@code ClientChannelListener} for a client channel is notifiedas follows:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|