soggy.Documentation Back to Soggy ↗

client.set_event_callback

Registers the function as a callback for the specified event. It can be removed later using client.unset_event_callback.

client.set_event_callback(event_name: string, callback)

Arguments

NameDescriptionType
event_nameName of the event.string
callbackLua function to call when this event occurs.function

Type to search guides, functions and events.