Experimental
API may change in future versions
Close WebSocket connection, disconnect listeners and reconnect observers
void on success
await events.closeAll() Copy
await events.closeAll()
on error
API may change in future versions
Close WebSocket connection, disconnect listeners and reconnect observers