disconnect

fun disconnect(code: Int = WS_CLOSE_NORMAL, reason: String? = null)

Disconnects from the Phoenix Socket and resets the reconnectTimer.

Return

Unit

Parameters

code

Status code as defined by Section 7.4 of RFC 6455.

reason

Reason for shutting down or code null.