Click or drag to resize

WebSocketSetCookie Method

Sets an HTTP cookie 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 void SetCookie(
	Cookie cookie
)

Parameters

cookie
Type: Sfs2X.WebSocketSharp.NetCookie
A Cookie that represents the cookie to send.
Exceptions
ExceptionCondition
InvalidOperationException This instance is not a client.
ArgumentNullExceptioncookie is .
Remarks
This method does nothing if the connection has already been established or it is closing.
See Also