# When I am connecting websocket with js code it showing like this what URL need to use to connect with websocket?

**URL:** <https://community.aliceblueonline.com/t/when-i-am-connecting-websocket-with-js-code-it-showing-like-this-what-url-need-to-use-to-connect-with-websocket/12894>\
**Category:** General\
**Created:** [November 10, 2024, 7:41pm UTC](https://community.aliceblueonline.com/t/when-i-am-connecting-websocket-with-js-code-it-showing-like-this-what-url-need-to-use-to-connect-with-websocket/12894 "2024-11-10T19:41:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik\_Sunkari](https://sea1.discourse-cdn.com/flex015/user_avatar/community.aliceblueonline.com/karthik_sunkari/32/5495_2.png) [@Karthik\_Sunkari](https://community.aliceblueonline.com/u/Karthik_Sunkari)\
**Post date:** [November 10, 2024, 7:41pm UTC](https://community.aliceblueonline.com/t/when-i-am-connecting-websocket-with-js-code-it-showing-like-this-what-url-need-to-use-to-connect-with-websocket/12894/1 "2024-11-10T19:41:25Z")

</div>

AliceBlue\_Websocket\_Sample\_code.php:266 WebSocket connection to ‘wss://ws1.aliceblueonline.com/NorenWS’ failed:

const wSocket = new WebSocket(constant.WEBSOCKET);
