Click or drag to resize

WebSocketSessionManager Class

Provides the management function for the sessions in a WebSocket service.
Inheritance Hierarchy
SystemObject
  Sfs2X.WebSocketSharp.ServerWebSocketSessionManager

Namespace:  Sfs2X.WebSocketSharp.Server
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public class WebSocketSessionManager

The WebSocketSessionManager type exposes the following members.

Properties
  NameDescription
Public propertyActiveIDs
Gets the IDs for the active sessions in the WebSocket service.
Public propertyCount
Gets the number of the sessions in the WebSocket service.
Public propertyIDs
Gets the IDs for the sessions in the WebSocket service.
Public propertyInactiveIDs
Gets the IDs for the inactive sessions in the WebSocket service.
Public propertyItem
Gets the session instance with id.
Public propertyKeepClean
Gets or sets a value indicating whether the inactive sessions in the WebSocket service are cleaned up periodically.
Public propertySessions
Gets the session instances in the WebSocket service.
Public propertyWaitTime
Gets or sets the time to wait for the response to the WebSocket Ping or Close.
Top
Methods
  NameDescription
Public methodBroadcast(Byte)
Sends data to every client in the WebSocket service.
Public methodBroadcast(String)
Sends data to every client in the WebSocket service.
Public methodBroadcast(Stream, Int32)
Sends the data from stream to every client in the WebSocket service.
Public methodBroadcastAsync(Byte, Action)
Sends data asynchronously to every client in the WebSocket service.
Public methodBroadcastAsync(String, Action)
Sends data asynchronously to every client in the WebSocket service.
Public methodBroadcastAsync(Stream, Int32, Action)
Sends the data from stream asynchronously to every client in the WebSocket service.
Public methodBroadping Obsolete.
Sends a ping to every client in the WebSocket service.
Public methodBroadping(String) Obsolete.
Sends a ping with message to every client in the WebSocket service.
Public methodCloseSession(String)
Closes the specified session.
Public methodCloseSession(String, CloseStatusCode, String)
Closes the specified session with code and reason.
Public methodCloseSession(String, UInt16, String)
Closes the specified session with code and reason.
Public methodPingTo(String)
Sends a ping to the client using the specified session.
Public methodPingTo(String, String)
Sends a ping with message to the client using the specified session.
Public methodSendTo(Byte, String)
Sends data to the client using the specified session.
Public methodSendTo(String, String)
Sends data to the client using the specified session.
Public methodSendTo(Stream, Int32, String)
Sends the data from stream to the client using the specified session.
Public methodSendToAsync(Byte, String, ActionBoolean)
Sends data asynchronously to the client using the specified session.
Public methodSendToAsync(String, String, ActionBoolean)
Sends data asynchronously to the client using the specified session.
Public methodSendToAsync(Stream, Int32, String, ActionBoolean)
Sends the data from stream asynchronously to the client using the specified session.
Public methodSweep
Cleans up the inactive sessions in the WebSocket service.
Public methodTryGetSession
Tries to get the session instance with id.
Top
Remarks
This class manages the sessions in a WebSocket service provided by the WebSocketServer or HttpServer.
See Also