WebSocketOrigin Property |
Namespace: Sfs2X.WebSocketSharp
public string Origin { get; set; }
A String that represents the value of the Origin header to send.
The syntax is <scheme>://<host>[:<port>].
The default value is .
Exception | Condition |
---|---|
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. |
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.