Method Web.SocketIO.Universe()->register()
- Method
register
variant
void
register(string
namespace
,string
event
,void
|function
(Client
,function
(mixed
... :void
),string
,string
,mixed
... :void
)fn
)
variant
void
register(string
namespace
,void
|function
(Client
,function
(mixed
... :void
),string
,mixed
... :void
)fn
)- Description
Register worker callback on namespace and event. There can be only one worker per tuple. Workers can be unregistered by omitting
fn
. Having a default worker per namespace in addition zero or more event specific ones, is supported.