# Websock response on unmodified folder

**URL:** https://forum.solidproject.org/t/websock-response-on-unmodified-folder/4001
**Category:** General Discussion
**Created:** [February 19, 2021, 3:01pm UTC](https://forum.solidproject.org/t/websock-response-on-unmodified-folder/4001 "2021-02-19T15:01:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ch1ch0gz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/ch1ch0gz/32/2227_2.png) [@ch1ch0gz](https://forum.solidproject.org/u/ch1ch0gz)
#### Post date: [February 19, 2021, 3:01pm UTC](https://forum.solidproject.org/t/websock-response-on-unmodified-folder/4001/1 "2021-02-19T15:01:39Z")

</div>

Hi,  
We are playing around creating a chat in solid and we are starting to use websockets for the notifications. We have defined two sockets. One pointing to [https://ch1ch0.pod.ideniox.com/inbox/13457fef486fb65ec886e023a9a13a7d/log.txt](https://ch1ch0.pod.ideniox.com/inbox/13457fef486fb65ec886e023a9a13a7d/log.txt) and another to [https://ch1ch0.pod.ideniox.com/outbox/log.txt](https://ch1ch0.pod.ideniox.com/outbox/log.txt)

We have developed it in a way that all outbound messages are store in the outbox folder and inbound messages in the inbox folder.

Our problem:  
Upon receiving a message from another user, both websockets react to the incoming message, even when nothing is changing in the outbox folder.  
We have defined the websocket as below where addressee is either [https://ch1ch0.pod.ideniox.com/inbox/13457fef486fb65ec886e023a9a13a7d/](https://ch1ch0.pod.ideniox.com/inbox/13457fef486fb65ec886e023a9a13a7d/)  
or  
[https://ch1ch0.pod.ideniox.com/outbox/l](https://ch1ch0.pod.ideniox.com/outbox/l)

socket = new WebSocket(  
addressee.replace(‘https’, ‘wss’),  
[‘solid-0.1’]  
);  
socket.onopen = function() {  
this.send(`sub ${addressee}log.txt`);  
console.log(“Connect socket”, addressee);  
};  
socket.onmessage = msg =\> this.refreshFolder(msg, addressee)

Has any one seen this behavior?

Thanks
