Just a second...

Managing sessions

A client session with the appropriate permissions can receive notifications and information about other client sessions. A client session with the appropriate permissions can also manage other client sessions.

Closing client sessions

Required permissions: view_session, modify_session

A client can close any client session, providing the requesting client knows the session ID of the target client.

Requests are routed to the correct server within a Diffusion™ server cluster.

A client can close all sessions specified by a session filter.

If applied to a server cluster, this closes sessions matching the filter on all the servers.

.NET
var _clientControl = session.ClientControl;
_clientControl.Close( sessionID, callback );
                    
Java and Android
ClientControl clientControl = session.feature(ClientControl.class);
clientControl.close(sessionID,callback);
                    

Changing security roles

Required permissions: view_session, modify_session

A client can change the security roles of another session identified by session ID, or a group of sessions that matches a session filter expression.

Requests identified by session ID are routed to the correct server within a Diffusion server cluster; requests using a session filter are applied to sessions matching the filter on all the servers in a cluster.

Java and Android
CompletableFuture<?> changeRoles(SessionId sessionId,
    Set<String> rolesToRemove,
    Set<String> rolesToAdd)
    throws IllegalArgumentException