disconnect

open override fun disconnect(code: Int, reason: String?)

Disconnect from the Server

Parameters

code

Status code as defined by <a href="http://tools.ietf.org/html/rfc6455#section-7.4">Section 7.4 of RFC 6455</a>.

reason

Reason for shutting down or {@code null}.