Click or drag to resize

WebSocketSessionManagerTryGetSession Method

Tries to get the session instance with id.

Namespace:  Sfs2X.WebSocketSharp.Server
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public bool TryGetSession(
	string id,
	out IWebSocketSession session
)

Parameters

id
Type: SystemString
A String that represents the ID of the session to find.
session
Type: Sfs2X.WebSocketSharp.ServerIWebSocketSession

When this method returns, a IWebSocketSession instance or if not found.

The session instance provides the function to access the information in the session.

Return Value

Type: Boolean
true if the session is successfully found; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionid is .
ArgumentExceptionid is an empty string.
See Also