reflex-dom
reflex-dom copied to clipboard
How to debug: jsaddle requests: 101 pending
My reflex-dom application gets stuck in a weird state where an event that is supposed to occur never occurs.
Checking the "network" tab of the debugging tools I find two requests that never return:
The information I get from Google Chrome:
jsaddle 101 websocket jsaddle.js:9 0 B pending
jsaddle 101 websocket jsaddle.js:38 0 B pending
and no error in the output logs of ob run
.
The code in jsaddle.js is
var ws0 = new WebSocket(wsaddress);
and
var ws1 = new WebSocket(wsaddress);
respectively.
I have no doubts there is some bug in my code but I am clueless on how to approach this. I eliminates the use of getPostBuild
as this has been causing trouble before, but that wasn't it.