# Is wix capable of creating a web socket?

**URL:** <https://forum.wixstudio.com/t/is-wix-capable-of-creating-a-web-socket/26280>\
**Category:** Ask the community\
**Tags:** wix-restaurants, code, question\
**Created:** [January 5, 2018, 3:16pm UTC](https://forum.wixstudio.com/t/is-wix-capable-of-creating-a-web-socket/26280 "2018-01-05T15:16:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jun-xi-heng](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@jun-xi-heng](https://forum.wixstudio.com/u/jun-xi-heng)\
**Post date:** [January 5, 2018, 3:16pm UTC](https://forum.wixstudio.com/t/is-wix-capable-of-creating-a-web-socket/26280/1 "2018-01-05T15:16:35Z")

</div>

Hi guys, may I ask about is there any way to make changes to an already open web page (new tab or window), from another page (different tab/window)?  
I am doing a prototype for restaurant pos system, which I want to show customer view and cashier view at the same time on different screen (dual screen), and the changes in cashier view will affect customer view instantly.  
Or is there other way to achieve my objective?

Some people are telling me about web socket, so I try to search for web socket in wix, but I did not find what I want.

---

<div class="post-metadata">

**Author:** ![admin-23](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/admin-23/32/708_2.png) [@admin-23](https://forum.wixstudio.com/u/admin-23)\
**Post date:** [January 7, 2018, 5:38pm UTC](https://forum.wixstudio.com/t/is-wix-capable-of-creating-a-web-socket/26280/2 "2018-01-07T17:38:31Z")

</div>

Hi,

Wix code does not feature a built-in socket control.  
However, it is possible to import a third party library to handle a socket connection.

A much easier to implement solution is to use [setInterval()](https://www.w3schools.com/jsref/met_win_setinterval.asp) to fire a refresh function every few seconds.  
Note that the amount of requests per minute your site can do is limited by a reasonable usage quota.

For example, if you set up 10 PoS systems, and poll your site database every 500 ms you will do 1200 requests per minute in total, which would scale rapidly if you add more PoS stations.

As an alternative, consider using a third party push service such as [Pusher.com](http://Pusher.com)  
This will allow you to send the data from your backend to this service and poll it according to your needs.

See more information [b](https://pusher.com/docs/javascript_quick_start) elow

> **[Pusher Channels Docs | JavaScript Quick Start Guide](https://pusher.com/docs/channels/getting_started/javascript/)**
>
> Use our JavaScript quick start guide to get set up with Channels and publish the first event to your web app.

EDIT: Added a note about the quota and a proposed alternative

---

<div class="post-metadata">

**Author:** ![christiangangemi](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@christiangangemi](https://forum.wixstudio.com/u/christiangangemi)\
**Post date:** [September 24, 2019, 4:03pm UTC](https://forum.wixstudio.com/t/is-wix-capable-of-creating-a-web-socket/26280/3 "2019-09-24T16:03:06Z")

</div>

Hi, Ido, are you sure that Pusher works in WIX? I included node-module in my project but the Pusher object doesn’t have trigger function to create events or connection to waint events…could you help me? Thanks Br
