onClosed

open fun onClosed(webSocket: IWebSocket, code: Int, reason: String)

Invoked when both peers have indicated that no more messages will be transmitted and the connection has been successfully released. No further calls to this listener will be made.