C-DEngine 5.105

HttpServer..::..AddWebSocketService<(Of <(<'TBehaviorWithNew>)>)> Method (String)

Adds a WebSocket service with the specified behavior and path.

Namespace:  WebSocketSharp.Server
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public void AddWebSocketService<TBehaviorWithNew>(
	string path
)
where TBehaviorWithNew : WebSocketBehavior
Public Sub AddWebSocketService(Of TBehaviorWithNew As WebSocketBehavior) ( _
	path As String _
)
public:
generic<typename TBehaviorWithNew>
where TBehaviorWithNew : WebSocketBehavior
void AddWebSocketService(
	String^ path
)

Type Parameters

TBehaviorWithNew
The type of the behavior of the service to add. The TBehaviorWithNew must inherit the WebSocketBehavior class, and must have a public parameterless constructor.

Parameters

path
Type: String
A String that represents the absolute path to the service to add.

Remarks


This method converts path to URL-decoded string, and removes '/' from tail end of path.