API reference

IPubSubAdapter Interface

An interface for publishing and subscribing to a specific topic

Properties

OnSubscribed : UnityEvent
[Get]
Unity event when subscribed to a topic
Signature
UnityEvent Meta.Voice.Net.PubSub.IPubSubAdapter.OnSubscribed
OnUnsubscribed : UnityEvent
[Get]
Unity event when unsubscribing from a topic
Signature
UnityEvent Meta.Voice.Net.PubSub.IPubSubAdapter.OnUnsubscribed
SubscriptionState : PubSubSubscriptionState
[Get]
The current topic subscription state
Signature
PubSubSubscriptionState Meta.Voice.Net.PubSub.IPubSubAdapter.SubscriptionState
TopicId : string
[Get][Set]
The topic id to be published to or received
Signature
string Meta.Voice.Net.PubSub.IPubSubAdapter.TopicId

Events

OnTopicSubscriptionStateChange : Action< PubSubSubscriptionState >
A callback when topic subscription state changes
Signature
Action<PubSubSubscriptionState> Meta.Voice.Net.PubSub.IPubSubAdapter.OnTopicSubscriptionStateChange