onClosed

abstract fun onClosed(code: Int?, reason: String?)

The server sent a close frame, no more calls to the listener are made.