StreamConnection.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 when all data has been flushed.

class StreamConnection
void
disconnect
(
string reason = defaultDisconnectReason
,)

Meta