# WebSocket connection to 'ws://./' failed: Error in connection establishment:

**URL:** <https://devforum.zoom.us/t/websocket-connection-to-ws-failed-error-in-connection-establishment/8897>\
**Category:** Web\
**Created:** [March 18, 2020, 11:07am UTC](https://devforum.zoom.us/t/websocket-connection-to-ws-failed-error-in-connection-establishment/8897 "2020-03-18T11:07:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![customerservice](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/customerservice/32/3595_2.png) [@customerservice](https://devforum.zoom.us/u/customerservice)\
**Post date:** [March 18, 2020, 11:07am UTC](https://devforum.zoom.us/t/websocket-connection-to-ws-failed-error-in-connection-establishment/8897/1 "2020-03-18T11:07:22Z")

</div>

**Description**  
We are using web sdk, but browser is showing below error. How to fix it.

WebSocket connection to ‘ws://./’ failed: Error in connection establishment:  
pace.js?v=evfXQgyADGar15z3wQSTJA2:463 WebSocket connection to ‘ws://./’ failed: Error in connection establishment: net::ERR\_NAME\_NOT\_RESOLVED

**Error**  
WebSocket connection to ‘ws://./’ failed: Error in connection establishment:

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [March 18, 2020, 8:58pm UTC](https://devforum.zoom.us/t/websocket-connection-to-ws-failed-error-in-connection-establishment/8897/2 "2020-03-18T20:58:49Z")

</div>

Hey @customerservice, thanks for posting and using Zoom!

Please provide steps to reproduce, your code, and screenshots.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![customerservice](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/customerservice/32/3595_2.png) [@customerservice](https://devforum.zoom.us/u/customerservice)\
**Post date:** [March 21, 2020, 5:49am UTC](https://devforum.zoom.us/t/websocket-connection-to-ws-failed-error-in-connection-establishment/8897/3 "2020-03-21T05:49:03Z")

</div>

Hi Tommy

We want users to click Join the video call button. As soon as they click, we are getting below error

WebSocket connection to ‘ws://./’ failed: Error in connection establishment:

 ![tempsnip](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/f/fc3f0a71256c51afb60f4412e26b4b83728a1091.png)

here is the code:

 $(function () { var joiningStack = @Html.Raw(Json.Encode(ViewData["zjoiningStack"])); var custdimp = @Html.Raw(Json.Encode(ViewData["user"])); //console.log (custdimp); //console.log('checkSystemRequirements'); //console.log(JSON.stringify(ZoomMtg.checkSystemRequirements())); //const zoomMeeting = document.getElementById("zmmtg-root"); //const ZoomMtg = document.getElementById("zmmtg-root"); // it's option if you want to change the jssdk dependency link resources. ZoomMtg.setZoomJSLib('https://source.zoom.us/1.7.2/lib', '/av'); ZoomMtg.preLoadWasm(); ZoomMtg.prepareJssdk(); console.log(JSON.stringify(ZoomMtg.checkSystemRequirements())); var signature; getSignature(); } document.getElementById('join\_meeting').addEventListener('click', function (e) { e.preventDefault(); if (!this.form.checkValidity()) { alert("Enter Name and Meeting Number"); return false; } ZoomMtg.init({ leaveUrl: joiningStack[2], isSupportAV: true, videoHeader: true, success: function () { ZoomMtg.join( { meetingNumber: joiningStack[1], userName: custdimp, signature: signature, apiKey: joiningStack[0], userEmail: 'email@gmail.com', passWord: '', success: function (res) { $('#nav-tool').hide(); console.log('join meeting success'); }, error: function (res) { console.log(res); } } ); }, error: function (res) { console.log(res); } }); }); }); We are pushing joiningstick data from server.

---

<div class="post-metadata">

**Author:** ![customerservice](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/customerservice/32/3595_2.png) [@customerservice](https://devforum.zoom.us/u/customerservice)\
**Post date:** [March 21, 2020, 6:55am UTC](https://devforum.zoom.us/t/websocket-connection-to-ws-failed-error-in-connection-establishment/8897/4 "2020-03-21T06:55:21Z")

</div>

Hi Tommy

I removed pace,js from page & error has gone but we are not able to see video ( just blank screen)

Also got this warning. We are on broadband & network speed should not be a problem.

"  
A cookie associated with a cross-site resource at [http://zoom.us/](http://zoom.us/) was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application\>Storage\>Cookies and see more details at [https://www.chromestatus.com/feature/5088147346030592](https://www.chromestatus.com/feature/5088147346030592) and [https://www.chromestatus.com/feature/5633521622188032](https://www.chromestatus.com/feature/5633521622188032).  
"

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [March 23, 2020, 3:48pm UTC](https://devforum.zoom.us/t/websocket-connection-to-ws-failed-error-in-connection-establishment/8897/5 "2020-03-23T15:48:45Z")

</div>

Hey @customerservice,

Glad to hear the error is gone.

Have you tried clicking the turn video on button? Is there another participant in the call?

That chrome warning should not be an issue.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:33pm UTC](https://devforum.zoom.us/t/websocket-connection-to-ws-failed-error-in-connection-establishment/8897/6 "2020-08-21T19:33:29Z")

</div>

Closed on August 21, 2020, 7:33pm UTC


