Nakama .NET Client SDK 3.8.0
Nakama .NET Client SDK
|
Web socket client factory used to open web socket client connections. More...
Public Member Functions | |
Task< WebSocket > | ConnectAsync (Uri uri, CancellationToken token=default(CancellationToken)) |
Connect with default options. | |
Task< WebSocket > | ConnectAsync (Uri uri, WebSocketClientOptions options, CancellationToken token=default(CancellationToken)) |
Connect with options specified. | |
Task< WebSocket > | ConnectAsync (System.IO.Stream responseStream, string secWebSocketKey, WebSocketClientOptions options, CancellationToken token=default(CancellationToken)) |
Connect with a stream that has already been opened and HTTP websocket upgrade request sent This function will check the handshake response from the server and proceed if successful Use this function if you have specific requirements to open a conenction like using special http headers and cookies You will have to build your own HTTP websocket upgrade request You may not even choose to use TCP/IP and this function will allow you to do that. | |
Web socket client factory used to open web socket client connections.
Task< WebSocket > Nakama.Ninja.WebSockets.IWebSocketClientFactory.ConnectAsync | ( | System.IO.Stream | responseStream, |
string | secWebSocketKey, | ||
WebSocketClientOptions | options, | ||
CancellationToken | token = default(CancellationToken) |
||
) |
Connect with a stream that has already been opened and HTTP websocket upgrade request sent This function will check the handshake response from the server and proceed if successful Use this function if you have specific requirements to open a conenction like using special http headers and cookies You will have to build your own HTTP websocket upgrade request You may not even choose to use TCP/IP and this function will allow you to do that.
responseStream | The full duplex response stream from the server |
secWebSocketKey | The secWebSocketKey you used in the handshake request |
options | The WebSocket client options |
token | The optional cancellation token |
Implemented in Nakama.Ninja.WebSockets.WebSocketClientFactory.
Task< WebSocket > Nakama.Ninja.WebSockets.IWebSocketClientFactory.ConnectAsync | ( | Uri | uri, |
CancellationToken | token = default(CancellationToken) |
||
) |
Connect with default options.
uri | The WebSocket uri to connect to (e.g. ws://example.com or wss://example.com for SSL) |
token | The optional cancellation token |
Implemented in Nakama.Ninja.WebSockets.WebSocketClientFactory.
Task< WebSocket > Nakama.Ninja.WebSockets.IWebSocketClientFactory.ConnectAsync | ( | Uri | uri, |
WebSocketClientOptions | options, | ||
CancellationToken | token = default(CancellationToken) |
||
) |
Connect with options specified.
uri | The WebSocket uri to connect to (e.g. ws://example.com or wss://example.com for SSL) |
options | The WebSocket client options |
token | The optional cancellation token |
Implemented in Nakama.Ninja.WebSockets.WebSocketClientFactory.