Meteor-Unity
3
A C#-based SDK for connecting Unity to Meteor servers
|
A subscription handle. More...
Static Public Member Functions | |
static implicit | operator Coroutine (Subscription sub) |
static Subscription | Subscribe (string name, params object[] args) |
Subscribe to a record set. Returns a handle that provides a ready property. You must call More... | |
Public Attributes | |
string | name |
The name of the subscription. Corresponds to your More... | |
string | requestId |
A unique identifier for the request used to fulfill this subscription. You generally will not need this. More... | |
object[] | args |
The arguments used in this subscription. More... | |
Properties | |
bool | ready [get, set] |
Gets a value specifying whether or not this subscription is ready (all the documents on the first request have been received). More... | |
Events | |
Action< string > | OnReady |
A subscription handle.
|
inlinestatic |
Subscribe to a record set. Returns a handle that provides a ready property. You must call
yield return (Coroutine)subscribeInstance;
in an IEnumerator/Coroutine to actually execute the subscription.
Example:
object [] Meteor.Subscription.args |
The arguments used in this subscription.
string Meteor.Subscription.name |
The name of the subscription. Corresponds to your
Meteor.publish(name, ...)
statement in your Meteor code.
string Meteor.Subscription.requestId |
A unique identifier for the request used to fulfill this subscription. You generally will not need this.
|
getset |
Gets a value specifying whether or not this subscription is ready (all the documents on the first request have been received).
true
if ready; otherwise, false
.