Settings[Get] The settings required to connect, authenticate and drive server/client communication. | |
ConnectionState[Get] Whether the web socket is disconnected, connecting, connected, or disconnecting. | |
bool | IsAuthenticated[Get] Whether authentication had completed successfully or not |
int | ReferenceCount[Get] Total amount of scripts that have called Connect() and have not yet called Disconnect(). Used to ensure WebSocketClient is only disconnected once no scripts are still referenced. |
int | Total amount of failed connection attempts made |
DateTime | LastResponseTime[Get] The utc time of the last response from the server |
bool | IsUploading[Get] Whether there currently is data being encoded and/or queued to be sent from the web socket. |
bool | IsDownloading[Get] Whether there currently is data being received and/or decoded from the web socket. |
bool | IsReferenced[Get] Whether there currently are any scripts that have called Connect() and not yet requested a Disconnect(). |
bool | IsReconnecting[Get] Whether will be reconnecting |
Dictionary< string, IWitWebSocketRequest > | Requests[Get] The requests currently being tracked by this client. Each access generates a new dictionary and should be cached. |
Action< WitWebSocketConnectionState > | Callback on connection state change. |
PubSubTopicSubscriptionDelegate | Callback when subscription state changes for a specific topic id |
Action< string, IWitWebSocketRequest > | Callback when a tracked topic generates a request |
WitWebSocketClient ( WitWebSocketSettings settings ) Constructor with settings data | |
WitWebSocketClient ( IWitRequestConfiguration configuration ) Constructor that takes in IWitRequestConfiguration and generates default settings use it | |
void | Connect ( ) Attempts to connect to the specified |
void | Disconnect ( ) Disconnects socket after checking state |
bool | SendRequest ( IWitWebSocketRequest request ) Send a request via this client if possible |
bool | TrackRequest ( IWitWebSocketRequest request ) Safely adds a request to the current request list |
bool | UntrackRequest ( IWitWebSocketRequest request ) Safely removes a request from the current request list |
bool | UntrackRequest ( string requestId ) Safely removes a request from the current request list by request id |
GetTopicSubscriptionState ( string topicId ) Obtains the current subscription state for a specific topic | |
void | Subscribe ( string topicId ) Method to subscribe to a specific topic id |
void | Unsubscribe ( string topicId ) Method to unsubscribe to a specific topic id |
void | Method to subscribe to a specific topic id with a parameter to ignore ref count for local unsubscribing following disconnect/error. |
| WitWebSocketSettings Meta.Voice.Net.WebSockets.WitWebSocketClient.Settings |
|---|
The settings required to connect, authenticate and drive server/client communication. |
| WitWebSocketConnectionState Meta.Voice.Net.WebSockets.WitWebSocketClient.ConnectionState |
|---|
Whether the web socket is disconnected, connecting, connected, or disconnecting. |
| bool Meta.Voice.Net.WebSockets.WitWebSocketClient.IsAuthenticated |
|---|
Whether authentication had completed successfully or not |
| int Meta.Voice.Net.WebSockets.WitWebSocketClient.ReferenceCount |
|---|
Total amount of scripts that have called Connect() and have not yet called Disconnect(). Used to ensure WebSocketClient is only disconnected once no scripts are still referenced. |
| int Meta.Voice.Net.WebSockets.WitWebSocketClient.FailedConnectionAttempts |
|---|
Total amount of failed connection attempts made |
| DateTime Meta.Voice.Net.WebSockets.WitWebSocketClient.LastResponseTime |
|---|
The utc time of the last response from the server |
| bool Meta.Voice.Net.WebSockets.WitWebSocketClient.IsUploading |
|---|
Whether there currently is data being encoded and/or queued to be sent from the web socket. |
| bool Meta.Voice.Net.WebSockets.WitWebSocketClient.IsDownloading |
|---|
Whether there currently is data being received and/or decoded from the web socket. |
| bool Meta.Voice.Net.WebSockets.WitWebSocketClient.IsReferenced |
|---|
Whether there currently are any scripts that have called Connect() and not yet requested a Disconnect(). |
| bool Meta.Voice.Net.WebSockets.WitWebSocketClient.IsReconnecting |
|---|
Whether will be reconnecting |
| Dictionary<string, IWitWebSocketRequest> Meta.Voice.Net.WebSockets.WitWebSocketClient.Requests |
|---|
The requests currently being tracked by this client. Each access generates a new dictionary and should be cached. |
| Action<WitWebSocketConnectionState> Meta.Voice.Net.WebSockets.WitWebSocketClient.OnConnectionStateChanged ( ) |
|---|
Callback on connection state change. |
| PubSubTopicSubscriptionDelegate Meta.Voice.Net.WebSockets.WitWebSocketClient.OnTopicSubscriptionStateChange ( ) |
|---|
Callback when subscription state changes for a specific topic id |
| Action<string, IWitWebSocketRequest> Meta.Voice.Net.WebSockets.WitWebSocketClient.OnTopicRequestTracked ( ) |
|---|
Callback when a tracked topic generates a request |
| Meta.Voice.Net.WebSockets.WitWebSocketClient.WitWebSocketClient ( WitWebSocketSettings settings ) |
|---|
Constructor with settings data |
| Meta.Voice.Net.WebSockets.WitWebSocketClient.WitWebSocketClient ( IWitRequestConfiguration configuration ) |
|---|
Constructor that takes in IWitRequestConfiguration and generates default settings use it |
| void Meta.Voice.Net.WebSockets.WitWebSocketClient.Connect ( ) |
|---|
Attempts to connect to the specified |
| void Meta.Voice.Net.WebSockets.WitWebSocketClient.Disconnect ( ) |
|---|
Disconnects socket after checking state |
| bool Meta.Voice.Net.WebSockets.WitWebSocketClient.SendRequest ( IWitWebSocketRequest request ) |
|---|
Send a request via this client if possible |
| bool Meta.Voice.Net.WebSockets.WitWebSocketClient.TrackRequest ( IWitWebSocketRequest request ) |
|---|
Safely adds a request to the current request list |
| bool Meta.Voice.Net.WebSockets.WitWebSocketClient.UntrackRequest ( IWitWebSocketRequest request ) |
|---|
Safely removes a request from the current request list |
| bool Meta.Voice.Net.WebSockets.WitWebSocketClient.UntrackRequest ( string requestId ) |
|---|
Safely removes a request from the current request list by request id |
| PubSubSubscriptionState Meta.Voice.Net.WebSockets.WitWebSocketClient.GetTopicSubscriptionState ( string topicId ) |
|---|
Obtains the current subscription state for a specific topic |
| void Meta.Voice.Net.WebSockets.WitWebSocketClient.Subscribe ( string topicId ) |
|---|
Method to subscribe to a specific topic id |
| void Meta.Voice.Net.WebSockets.WitWebSocketClient.Unsubscribe ( string topicId ) |
|---|
Method to unsubscribe to a specific topic id |
| void Meta.Voice.Net.WebSockets.WitWebSocketClient.Unsubscribe ( string topicId, bool ignoreRefCount ) |
|---|
Method to subscribe to a specific topic id with a parameter to ignore ref count for local unsubscribing following disconnect/error. |