//okhttp/okhttp3/WebSocketListener/onClosed
onClosed¶
[jvm]\ open fun onClosed(webSocket: WebSocket, 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.