void SetGlobal (string ns, string key, DynValue value)
Sets a global key to a value. The value can be any object type.
DynValue GetGlobal (string ns, string key)
Retrieves a previously set global variable, or returns nil.
void RegisterFunction (string ns, string func, Closure reference)
Makes func into a global function that can be accessed anywhere.
void RegisterBroadcastFunction (string ns, string func, Closure reference)
Makes func into a global function that can be accessed anywhere.
void UnregisterBroadcastFunction (string ns, string func, Closure reference) void UnregisterBroadcastFunction (string ns, string func)
Unregister Broadcast Function.
void CallFunction (string ns, string func, IEnumerable< DynValue > args)
Calls the registered function with the specified arguments.
int CallBroadcastFunction (string ns, string func, IEnumerable< DynValue > args)
Calls every registered broadcast function with the specified arguments, and returns the number of calls queued.
Function |
---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Function |
---|
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
void Get (string url, Closure onComplete, Table headers=null)
void Post (string url, string data, Closure onComplete, Table headers=null)
void (string ns, string key, DynValue value)
DynValue (string ns, string key)
void (string ns, string func, Closure reference)
void (string ns, string func, Closure reference)
void (string ns, string func, Closure reference) void UnregisterBroadcastFunction (string ns, string func)
void (string ns, string func, IEnumerable< DynValue > args)
int (string ns, string func, IEnumerable< DynValue > args)