Click or drag to resize

WebSocketOrigin Property

Gets or sets the value of the HTTP Origin header to send with the handshake request.

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

Property Value

Type: String

A String that represents the value of the Origin header to send.

The syntax is <scheme>://<host>[:<port>].

The default value is .

Exceptions
ExceptionCondition
InvalidOperationException The set operation is not available if this instance is not a client.
ArgumentException

The value specified for a set operation is not an absolute URI string.

-or-

The value specified for a set operation includes the path segments.

Remarks

The HTTP Origin header is defined in Section 7 of RFC 6454.

This instance sends the Origin header if this property has any.

The set operation does nothing if the connection has already been established or it is closing.

See Also