# Web Socket multiuser data

**URL:** <https://discourse.nodered.org/t/web-socket-multiuser-data/45775>\
**Category:** General\
**Created:** [17 May 2021 11:21 UTC](https://discourse.nodered.org/t/web-socket-multiuser-data/45775 "2021-05-17T11:21:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kartiknodered](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kartiknodered/32/40448_2.png) [@Kartiknodered](https://discourse.nodered.org/u/Kartiknodered)\
**Post date:** [17 May 2021 11:21 UTC](https://discourse.nodered.org/t/web-socket-multiuser-data/45775/1 "2021-05-17T11:21:09Z")

</div>

Hello,  
How can we send multiple user data on web socket? Read more..  
Suppose I have 10 user and I have web socket connected to some port say ws/example.  
Now all the user can send their data on websocket . So is it affect the data of previous or next users.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [17 May 2021 14:47 UTC](https://discourse.nodered.org/t/web-socket-multiuser-data/45775/2 "2021-05-17T14:47:00Z")

</div>

> [@Kartiknodered](#):
>
> Suppose I have 10 user and I have web socket connected to some port say ws/example.  
> Now all the user can send their data on websocket . So is it affect the data of previous or next users.

Not sure if the websocket nodes have this but for Dashboard and uibuilder, incoming websocket messages have a `msg._socketId` on them. This gives a rough indication of the client that sent the message. However, each browser tab creates a new client connection and that connection is reset if a link is temporarily lost or if the user reloads the page.

The best approach is to add something to your messages yourself.

---

<div class="post-metadata">

**Author:** ![Kartiknodered](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kartiknodered/32/40448_2.png) [@Kartiknodered](https://discourse.nodered.org/u/Kartiknodered)\
**Post date:** [18 May 2021 04:01 UTC](https://discourse.nodered.org/t/web-socket-multiuser-data/45775/3 "2021-05-18T04:01:35Z")

</div>

Thanks for your input.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [17 July 2021 04:02 UTC](https://discourse.nodered.org/t/web-socket-multiuser-data/45775/4 "2021-07-17T04:02:25Z")

</div>

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