WebSocketProvider[Get] The script used to provide the WitWebSocketClient |
WebSocketClient[Get] The current web socket client | |
string | TopicId[Get] The topic to be used for publishing/subscribing to the current client provider |
SubscriptionState[Get] The current subscription state of the adapter | |
UnityEvent | OnSubscribed[Get] Callback when successfully subscribed to the current topic |
UnityEvent | OnUnsubscribed[Get] Callback when successfully unsubscribed from the current topic |
Action< PubSubSubscriptionState > | Event callback for subscription state change |
Action< IWitWebSocketRequest > | Callback when a request is generated for the subscribed topic |
void | OnEnable ( ) |
void | |
void | OnDisable ( ) |
void | OnDestroy ( ) |
void | Handle currently set topic id subscription changes only |
void | SetSubscriptionState ( PubSubSubscriptionState subscriptionState ) Set the current subscription state |
void | SetClientProvider ( IWitWebSocketClientProvider clientProvider ) Safely sets the new web socket client provider if possible |
void | SendRequest ( IWitWebSocketRequest request ) Send a request with a specified topic |
void | SetTopicId ( string newTopicId ) Set the topic, unsubscribe to the previous & subscribe to a new |
IWitWebSocketClientProvider Meta.Voice.Net.WebSockets.WitWebSocketAdapter.WebSocketProvider |
---|
The script used to provide the WitWebSocketClient |
WitWebSocketClient Meta.Voice.Net.WebSockets.WitWebSocketAdapter.WebSocketClient |
---|
The current web socket client |
string Meta.Voice.Net.WebSockets.WitWebSocketAdapter.TopicId |
---|
The topic to be used for publishing/subscribing to the current client provider |
PubSubSubscriptionState Meta.Voice.Net.WebSockets.WitWebSocketAdapter.SubscriptionState |
---|
The current subscription state of the adapter |
UnityEvent Meta.Voice.Net.WebSockets.WitWebSocketAdapter.OnSubscribed |
---|
Callback when successfully subscribed to the current topic |
UnityEvent Meta.Voice.Net.WebSockets.WitWebSocketAdapter.OnUnsubscribed |
---|
Callback when successfully unsubscribed from the current topic |
Action<PubSubSubscriptionState> Meta.Voice.Net.WebSockets.WitWebSocketAdapter.OnTopicSubscriptionStateChange ( ) |
---|
Event callback for subscription state change |
Action<IWitWebSocketRequest> Meta.Voice.Net.WebSockets.WitWebSocketAdapter.OnRequestGenerated ( ) |
---|
Callback when a request is generated for the subscribed topic |
virtual void Meta.Voice.Net.WebSockets.WitWebSocketAdapter.OnEnable ( ) |
---|
No description available.
|
virtual void Meta.Voice.Net.WebSockets.WitWebSocketAdapter.HandleRequestGenerated ( string topicId, IWitWebSocketRequest request ) |
---|
No description available.
|
virtual void Meta.Voice.Net.WebSockets.WitWebSocketAdapter.OnDisable ( ) |
---|
No description available.
|
virtual void Meta.Voice.Net.WebSockets.WitWebSocketAdapter.OnDestroy ( ) |
---|
No description available.
|
virtual void Meta.Voice.Net.WebSockets.WitWebSocketAdapter.HandleSubscriptionStateChange ( string topicId, PubSubSubscriptionState subscriptionState ) |
---|
Handle currently set topic id subscription changes only |
void Meta.Voice.Net.WebSockets.WitWebSocketAdapter.SetSubscriptionState ( PubSubSubscriptionState subscriptionState ) |
---|
Set the current subscription state |
void Meta.Voice.Net.WebSockets.WitWebSocketAdapter.SetClientProvider ( IWitWebSocketClientProvider clientProvider ) |
---|
Safely sets the new web socket client provider if possible |
void Meta.Voice.Net.WebSockets.WitWebSocketAdapter.SendRequest ( IWitWebSocketRequest request ) |
---|
Send a request with a specified topic |
void Meta.Voice.Net.WebSockets.WitWebSocketAdapter.SetTopicId ( string newTopicId ) |
---|
Set the topic, unsubscribe to the previous & subscribe to a new |