# Error websocket on Safari, keeps reconnecting

**URL:** <https://devforum.zoom.us/t/error-websocket-on-safari-keeps-reconnecting/66679>\
**Category:** Web\
**Created:** [March 30, 2022, 8:17am UTC](https://devforum.zoom.us/t/error-websocket-on-safari-keeps-reconnecting/66679 "2022-03-30T08:17:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ol\_mas](https://avatars.discourse-cdn.com/v4/letter/o/f14d63/32.png) [@ol\_mas](https://devforum.zoom.us/u/ol_mas)\
**Post date:** [March 30, 2022, 8:17am UTC](https://devforum.zoom.us/t/error-websocket-on-safari-keeps-reconnecting/66679/1 "2022-03-30T08:17:37Z")

</div>

**Description**  
On Safari cannot leave the session. Nor by explicit “client.leave” neither after a timeout.

**Browser Console Error**

 ![error](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/3/13c33fed1edcb8b523cd5d4c8acef6fb13de5c7d.jpeg)

**Which Web Video SDK version?**  
1.2.3

**Video SDK Code Snippets**  
` await this.client.leave(this.client.isHost());`

**To Reproduce(If applicable)**

1. Join the session.
2. Try to leave by calling client.leave().
3. Get the error of the websocket that leads to immediate reconnection.
4. Impossible ever to leave the session. Keeps on reconnecting.

**Device (please complete the following information):**

- Device: Macbook Air
- OS: macOS Monterey 12.2.1
- Browser: Safari
- Browser Version: 15.3 (17612.4.9.1.8)

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [March 31, 2022, 8:23am UTC](https://devforum.zoom.us/t/error-websocket-on-safari-keeps-reconnecting/66679/2 "2022-03-31T08:23:43Z")

</div>

Hey @ol_mas

Thanks for your feedback.

It seems the issue comes from [a known bug in the WebKit](https://bugs.webkit.org/show_bug.cgi?id=228296). When the WebSocket is closed, the WebKit throws `The operation couldn't be completed` error. Then it enters the failover flow and rejoins the session.

We will add protection for this issue in the next release. Please stay tuned.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![ol\_mas](https://avatars.discourse-cdn.com/v4/letter/o/f14d63/32.png) [@ol\_mas](https://devforum.zoom.us/u/ol_mas)\
**Post date:** [April 1, 2022, 6:41am UTC](https://devforum.zoom.us/t/error-websocket-on-safari-keeps-reconnecting/66679/3 "2022-04-01T06:41:29Z")

</div>

Thanks! I wonder why it happens only in Safari…

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 1, 2022, 4:42pm UTC](https://devforum.zoom.us/t/error-websocket-on-safari-keeps-reconnecting/66679/4 "2022-05-01T16:42:02Z")

</div>

Closed on May 1, 2022, 4:42pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
