Click or drag to resize

WebSocketServer Class

Provides a WebSocket protocol server.
Inheritance Hierarchy
SystemObject
  Sfs2X.WebSocketSharp.ServerWebSocketServer

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

The WebSocketServer type exposes the following members.

Constructors
  NameDescription
Public methodWebSocketServer
Initializes a new instance of the WebSocketServer class.
Public methodWebSocketServer(Int32)
Initializes a new instance of the WebSocketServer class with the specified port.
Public methodWebSocketServer(String)
Initializes a new instance of the WebSocketServer class with the specified url.
Public methodWebSocketServer(Int32, Boolean)
Initializes a new instance of the WebSocketServer class with the specified port and secure.
Public methodWebSocketServer(IPAddress, Int32)
Initializes a new instance of the WebSocketServer class with the specified address and port.
Public methodWebSocketServer(IPAddress, Int32, Boolean)
Initializes a new instance of the WebSocketServer class with the specified address, port, and secure.
Top
Properties
  NameDescription
Public propertyAddress
Gets the IP address of the server.
Public propertyAllowForwardedRequest
Gets or sets a value indicating whether the server accepts every handshake request without checking the request URI.
Public propertyAuthenticationSchemes
Gets or sets the scheme used to authenticate the clients.
Public propertyIsListening
Gets a value indicating whether the server has started.
Public propertyIsSecure
Gets a value indicating whether secure connections are provided.
Public propertyKeepClean
Gets or sets a value indicating whether the server cleans up the inactive sessions periodically.
Public propertyLog
Gets the logging function for the server.
Public propertyPort
Gets the port of the server.
Public propertyRealm
Gets or sets the realm used for authentication.
Public propertyReuseAddress
Gets or sets a value indicating whether the server is allowed to be bound to an address that is already in use.
Public propertySslConfiguration
Gets the configuration for secure connection.
Public propertyUserCredentialsFinder
Gets or sets the delegate used to find the credentials for an identity.
Public propertyWaitTime
Gets or sets the time to wait for the response to the WebSocket Ping or Close.
Public propertyWebSocketServices
Gets the management function for the WebSocket services provided by the server.
Top
Methods
  NameDescription
Public methodAddWebSocketServiceTBehaviorWithNew(String)
Adds a WebSocket service with the specified behavior and path.
Public methodAddWebSocketServiceTBehaviorWithNew(String, ActionTBehaviorWithNew)
Adds a WebSocket service with the specified behavior, path, and initializer.
Public methodAddWebSocketServiceTBehavior(String, FuncTBehavior) Obsolete.
Adds a WebSocket service with the specified behavior, path, and creator.
Public methodRemoveWebSocketService
Removes a WebSocket service with the specified path.
Public methodStart
Starts receiving incoming handshake requests.
Public methodStop
Stops receiving incoming handshake requests.
Public methodStop(CloseStatusCode, String) Obsolete.
Stops receiving incoming handshake requests and closes each connection with the specified code and reason.
Public methodStop(UInt16, String) Obsolete.
Stops receiving incoming handshake requests and closes each connection with the specified code and reason.
Top
Remarks
This class can provide multiple WebSocket services.
See Also