ClosedCallback()
DESCRIPTION
Callback function when a connection is closed
DECLARATION
export type ClosedCallback = (error?: NabtoWebrtcError) => void
PARAMETERS
error:
- this is optional is is either a event from the websocket connection or an error object describing an error.