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 immediately, even when not all data has been flushed yet.

class StreamConnection
void
disconnect
(
string reason = defaultDisconnectReason
,)

Meta