Constructor

Initializes a new instance of the WebSocket class pointing to the Kuzzle server specified by the uri.

Arguments

Copied to clipboard!
public WebSocket(Uri uri)

Argument Type Description
uri
Uri
URI pointing to a Kuzzle server

uri

A Uri object pointing to a Kuzzle server.

Use wss://<host>:<ip> to initiate a secure SSL connection.

Return

A WebSocket protocol instance.

Usage

Copied to clipboard!
using System;
using KuzzleSdk.Protocol;
WebSocket networkProtocol = new WebSocket(new Uri("ws://kuzzle:7512"));