SmartFoxServer 2X C# API (Unity/.Net/Mono/UWP)
SmartFoxServer 2X C# API (Unity/.Net/Mono/UWP)
Sfs2X.WebSocketSharp
WebSocket Class
WebSocket Methods
Accept Method
AcceptAsync Method
Close Method
CloseAsync Method
Connect Method
ConnectAsync Method
Ping Method
Send Method
SendAsync Method
SetCookie Method
SetCredentials Method
SetProxy Method
WebSocket
SetCookie 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#
Copy
public
void
SetCookie
(
Cookie
cookie
)
Parameters
cookie
Type:
Sfs2X.WebSocketSharp.Net
Cookie
A
Cookie
that represents the cookie to send.
Exceptions
Exception
Condition
InvalidOperationException
This instance is not a client.
ArgumentNullException
cookie
is
.
Remarks
This method does nothing if the connection has already been established or it is closing.
See Also
Reference
WebSocket Class
Sfs2X.WebSocketSharp Namespace
Copyright gotoAndPlay() 2023