Click or drag to resize

WebSocketServiceManager Class

Provides the management function for the WebSocket services.
Inheritance Hierarchy
SystemObject
  Sfs2X.WebSocketSharp.ServerWebSocketServiceManager

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

The WebSocketServiceManager type exposes the following members.

Properties
  NameDescription
Public propertyCount
Gets the number of the WebSocket services.
Public propertyHosts
Gets the host instances for the WebSocket services.
Public propertyItem
Gets the host instance for a WebSocket service with the specified path.
Public propertyKeepClean
Gets or sets a value indicating whether the inactive sessions in the WebSocket services are cleaned up periodically.
Public propertyPaths
Gets the paths for the WebSocket services.
Public propertySessionCount Obsolete.
Gets the total number of the sessions in the WebSocket services.
Public propertyWaitTime
Gets or sets the time to wait for the response to the WebSocket Ping or Close.
Top
Methods
  NameDescription
Public methodAddServiceTBehavior
Adds a WebSocket service with the specified behavior, path, and initializer.
Public methodBroadcast(Byte) Obsolete.
Sends data to every client in the WebSocket services.
Public methodBroadcast(String) Obsolete.
Sends data to every client in the WebSocket services.
Public methodBroadcastAsync(Byte, Action) Obsolete.
Sends data asynchronously to every client in the WebSocket services.
Public methodBroadcastAsync(String, Action) Obsolete.
Sends data asynchronously to every client in the WebSocket services.
Public methodBroadcastAsync(Stream, Int32, Action) Obsolete.
Sends the data from stream asynchronously to every client in the WebSocket services.
Public methodBroadping Obsolete.
Sends a ping to every client in the WebSocket services.
Public methodBroadping(String) Obsolete.
Sends a ping with message to every client in the WebSocket services.
Public methodClear
Removes all WebSocket services managed by the manager.
Public methodRemoveService
Removes a WebSocket service with the specified path.
Public methodTryGetServiceHost
Tries to get the host instance for a WebSocket service with the specified path.
Top
Remarks
This class manages the WebSocket services provided by the WebSocketServer or HttpServer.
See Also