In ChatSurf exports are used to register events and tell ChatSurf what to do with the plugin. It is recommended to export data like this:
module.exports = { ... };
All exports are listed below:
Export | Description |
---|---|
onConnect | Event |
onMessage | Event |
ignoreplugin | Tells ChatSurf not to load plugin. Used in libraries. |