Actor.prototype._onConnect(connection: Connection<this>): void | Promise<void>
Executed after the client has successfully connected.
Messages will not be processed for this actor until this method succeeds.
Errors thrown from this method will cause the client to disconnect.
connection: Connection<this>
- The connection object.
void | Promise<void>