WebSocketBehaviorProtocol Property |
Namespace: Sfs2X.WebSocketSharp.Server
public string Protocol { get; set; }
A String that represents the name of the subprotocol.
The value specified for a set must be a token defined in RFC 2616.
The default value is an empty string.
Exception | Condition |
---|---|
InvalidOperationException | The set operation is not available if the session has already started. |
ArgumentException | The value specified for a set operation is not a token. |