close(Detach all sockets (call on actor deactivation if you want a clean close). Parameterscode?,reason?):void
Returns
void
Close Codes
The default code1001 is the code a client also receives when an actor restarts or moves. On it, a client reconnects promptly, as Connection Lifecycle describes.