Skip to main content
close(code?, reason?): void
Detach all sockets (call on actor deactivation if you want a clean close). Parameters Returns void

Close Codes

The default code 1001 is the code a client also receives when an actor restarts or moves. On it, a client reconnects promptly, as Connection Lifecycle describes.