onclose

open fun onclose()(source)

Callback for when the connection is closed for any reason.

This is invoked when close() is called as well.