onClosed

fun onClosed(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>(source)

Emitted when the connection has completely closed.

This happens either due to an orderly close from the peer, one initiated via method@WebsocketConnection.close or a fatal error condition that caused a close.

This signal will be emitted once.

Parameters

connectFlags

a combination of ConnectFlags

handler

the Callback to connect