inline addNoLoginRequests (list:Array<String>):Void
Client request types that are given as a parameter will not require client login to work.
Parameters:
list
Client request types in the <module>.<name>
format.
inline getClientInternal (id:Int):ClientInfo
Returns client by his name.
Note: Will only work correctly if all client names are unique!
Parameters:
name
Client name.
Returns:
Client. Returns null, if no such client is online.
getModule (name:String):Dynamic
Returns server module by its name.
Parameters:
name
Module name.
Returns:
Module. Null, if no such module found.
getSubscribedMethods (tag:String):Null<List<Dynamic>>
Returns a list of subscribed methods for a given event type. Module subscription API is described in detail in Subscriptions article.
Parameters:
tag
Event type.
Returns:
List of methods subscribed to this event type.
getSubscribedModules (tag:String):Null<_ModulesList>
Returns a list of subscribed modules for a given event type. Module subscription API is described in detail in Subscriptions article.
Parameters:
tag
Event type.
Returns:
List of modules subscribed to this event type.
dynamic initModules ():Void
Initializes project server modules.
Intended to call addModule()
or loadModules()
.
subscribeMethod (tag:String, method:Dynamic):Void
Subscribes method to an event. Module subscription API is described in detail in Subscriptions article.
Parameters:
tag
Event type.
method
Method.
subscribeModule (tag:String, module:Dynamic):Void
Subscribes module to an event. Module subscription API is described in detail in Subscriptions article.
Parameters:
tag
Event type.
module
Server module.