Provides the functions of the server that receives the WebSocket connection requests.
See Also: Inherited members from WebSocketServerBase.
|
Initializes a new instance of the WebSocketSharp.Server.WebSocketServer class. | |
|
Initializes a new instance of the WebSocketSharp.Server.WebSocketServer class that listens for incoming connection attempts on the specified port. | |
|
Initializes a new instance of the WebSocketSharp.Server.WebSocketServer class that listens for incoming connection attempts on the specified WebSocket URL. | |
|
Initializes a new instance of the WebSocketSharp.Server.WebSocketServer class that listens for incoming connection attempts on the specified port and secure. | |
|
Initializes a new instance of the WebSocketSharp.Server.WebSocketServer class that listens for incoming connection attempts on the specified address and port. | |
|
Initializes a new instance of the WebSocketSharp.Server.WebSocketServer class that listens for incoming connection attempts on the specified address, port and secure. |
[read-only] | Address | System.Net.IPAddress . Gets the IP address on which to listen for incoming connection attempts. (Inherited from WebSocketServerBase.) |
[read-only] | IsSecure | bool . Gets a value indicating whether this server provides secure connection. (Inherited from WebSocketServerBase.) |
[read-only] | IsSelfHost | bool . Gets a value indicating whether this server is self host. (Inherited from WebSocketServerBase.) |
[read-only] | Port | int . Gets the port on which to listen for incoming connection attempts. (Inherited from WebSocketServerBase.) |
[read-only] | ServicePaths | IEnumerable<string> . Gets the paths associated with the each WebSocket services. |
|
Sweeped | bool . Gets or sets a value indicating whether the server cleans up the inactive client. |
|
BaseUri | Uri . Gets or sets the WebSocket URL on which to listen for incoming connection attempts. (Inherited from WebSocketServerBase.) |
|
AddService<T>
(string)Adds a WebSocket service. |
|
|
Broadcast
(string)Broadcasts the specified string to all clients. |
|
|
Start
()Starts to receive the WebSocket connection requests. (Inherited from WebSocketServerBase.) |
|
override
|
Stop
()Stops receiving the WebSocket connection requests. |
|
|
Stop
()Stops receiving the WebSocket connection requests. (Inherited from WebSocketServerBase.) |
override
|
AcceptWebSocket
(WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext)Accepts a WebSocket connection. |
|
abstract
|
AcceptWebSocket
(WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext)Accepts a WebSocket connection. (Inherited from WebSocketServerBase.) |
|
|
Error
(string)Occurs the WebSocketServerBase.OnError event with the specified string. (Inherited from WebSocketServerBase.) |
|
OnError | Occurs when this server gets an error. (Inherited from WebSocketServerBase.) |
Initializes a new instance of the WebSocketSharp.Server.WebSocketServer class.
Syntax
public WebSocketServer ()Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Initializes a new instance of the WebSocketSharp.Server.WebSocketServer class that listens for incoming connection attempts on the specified port.
Syntax
public WebSocketServer (int port)Parameters
- port
- An int that contains a port number.
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Initializes a new instance of the WebSocketSharp.Server.WebSocketServer class that listens for incoming connection attempts on the specified WebSocket URL.
Syntax
public WebSocketServer (string url)Parameters
- url
- A string that contains a WebSocket URL.
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Initializes a new instance of the WebSocketSharp.Server.WebSocketServer class that listens for incoming connection attempts on the specified port and secure.
Syntax
Parameters
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Initializes a new instance of the WebSocketSharp.Server.WebSocketServer class that listens for incoming connection attempts on the specified address and port.
Syntax
public WebSocketServer (System.Net.IPAddress address, int port)Parameters
- address
- A System.Net.IPAddress that contains an IP address.
- port
- An int that contains a port number.
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Initializes a new instance of the WebSocketSharp.Server.WebSocketServer class that listens for incoming connection attempts on the specified address, port and secure.
Syntax
Parameters
- address
- A System.Net.IPAddress that contains an IP address.
- port
- An int that contains a port number.
- secure
- A bool that indicates providing a secure connection or not. (true indicates providing a secure connection.)
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Accepts a WebSocket connection.
Syntax
protected override void AcceptWebSocket (WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext context)Parameters
- context
- A WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext that contains a WebSocket connection.
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Adds a WebSocket service.
Syntax
Type Parameters
- T
- The type of a WebSocket service. The T must inherit the WebSocketSharp.Server.WebSocketService class.
Parameters
- absPath
- A string that contains an absolute path associated with a WebSocket service.
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Broadcasts the specified string to all clients.
Syntax
Parameters
- data
- A string to broadcast.
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Gets the paths associated with the each WebSocket services.
Syntax
public IEnumerable<string> ServicePaths { get; }Value
An IEnumerable<string> that contains the paths.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Stops receiving the WebSocket connection requests.
Syntax
public override void Stop ()Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)
Gets or sets a value indicating whether the server cleans up the inactive client.
Syntax
public bool Sweeped { get; set; }Value
true if the server cleans up the inactive client; otherwise, false.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)