websocket-sharp : WebSocketSharp.Server Namespace

IServiceHost Interface

Exposes the methods and properties for the WebSocket service host.

Syntax

public interface IServiceHost

Remarks

Requirements

Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)

Members

Public Properties

Sweeping bool . Gets or sets a value indicating whether the WebSocket service host cleans up the inactive service instances periodically.

Public Methods

BindWebSocket (WebSocketSharp.Net.WebSockets.WebSocketContext)
Binds the specified WebSocketSharp.Net.WebSockets.WebSocketContext to a WebSocketSharp.Server.WebSocketService instance.
Broadcast (string)
Broadcasts the specified string to all service clients.
Start ()
Starts the WebSocket service host.
Stop ()
Stops the WebSocket service host.

Member Details

BindWebSocket Method

Binds the specified WebSocketSharp.Net.WebSockets.WebSocketContext to a WebSocketSharp.Server.WebSocketService instance.

Syntax

Parameters

context
A WebSocketSharp.Net.WebSockets.WebSocketContext that contains the WebSocket connection request objects to bind.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)

Broadcast Method

Broadcasts the specified string to all service clients.

Syntax

public void Broadcast (string data)

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)

Start Method

Starts the WebSocket service host.

Syntax

public void Start ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)

Stop Method

Stops the WebSocket service host.

Syntax

public void Stop ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)

Sweeping Property

Gets or sets a value indicating whether the WebSocket service host cleans up the inactive service instances periodically.

Syntax

public bool Sweeping { get; set; }

Value

true if the WebSocket service host cleans up the inactive service instances periodically; otherwise, false.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: WebSocketSharp.Server
Assembly: websocket-sharp (in websocket-sharp.dll)