Click or drag to resize

WebSocketBehaviorProtocol Property

Gets or sets the name of the WebSocket subprotocol for the service.

Namespace:  Sfs2X.WebSocketSharp.Server
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public string Protocol { get; set; }

Property Value

Type: String

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.

Implements

IWebSocketSessionProtocol
Exceptions
ExceptionCondition
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.
See Also