HttpServerAddWebSocketServiceTBehaviorWithNew Method (String) |
Namespace: Sfs2X.WebSocketSharp.Server
public void AddWebSocketService<TBehaviorWithNew>( string path ) where TBehaviorWithNew : new(), WebSocketBehavior
The type of the behavior for the service.
It must inherit the WebSocketBehavior class and must have a public parameterless constructor.
Exception | Condition |
---|---|
ArgumentNullException | path is . |
ArgumentException | path is an empty string. -or- path is not an absolute path. -or- path includes either or both query and fragment components. -or- path is already in use. |