Connection.disconnect

Close a connection. If there is queued data waiting to be sent, wait until it is sent before disconnecting. The disconnect handler will be called immediately, even when not all data has been flushed yet.

class Connection
void
disconnect
(
string reason = defaultDisconnectReason
,)

Meta