onDisconnect
This event is triggered when a script is disconnected from the server.
caution
This event is only triggered when the script is disconnected by the server. Use onDestroy
for any cleanup code instead.
Example
engine.events.on('onDisconnect', () => {
console.log('Script disconnected from server!');
});
Available on: Client Server