Skip to main content

shared net:listen

void net:listen(netId, hookName, callback)

Creates a listener for a specific netId. Make sure your hookName is unique, it might get replaced by other listeners!


Parameters

TypeNameDescriptionOptional
stringnetIdNo description
stringhookNameNo description
functioncallbackfun(data: any)