• Experimental

    API may change in future versions

    Close WebSocket connection, disconnect listeners and reconnect observers

    Returns Promise<void>

    void on success

    Example

    await events.closeAll()
    

    Throws

    on error