add_handler

Client Server

Add an handler function to a specific event.

event.add_handler(name --[[ string ]], handler -- [[ func ]])

You need to register an event at least once to be able to add an handler. Calling register function multiples time will simply do nothing if the event is already registered.

Last updated