Minimal repro of a SockJS issue where throwing an error during onmessage
results in messages being repeated.
npm install
node index.js
Then launch a browser and go to http://localhost:9999/.
JavaScript console should say:
Message received: one
Uncaught Error: boom
[stack trace]
Message received: two
Uncaught Error: boom
[stack trace]
JS console says:
Message received: one
Uncaught Error: boom
[stack trace]
Message received: one
Uncaught Error: boom
[stack trace]
(i.e. Message received: one
appears twice)