When the user refreshes the tab the websocket connection doesn't close immediately. Then messages from the channel MVar are accessed by 2 websocket threads and sent to each of the 2 websockets. It appears as only every second message arrives at the browser.
When the user refreshes the tab the websocket connection doesn't close immediately. Then messages from the channel MVar are accessed by 2 websocket threads and sent to each of the 2 websockets. It appears as only every second message arrives at the browser.