okhttp / okhttp3 / WebSocketListener / onClosed

onClosed

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

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.