Websocket disconnection problem

Hi there,

I try to use Websocket to connect to an external device and receive information, it's all working quite good, but I get WS disconnection every 30 sec, even if I set correctly (at least I guess I do) keepAlive messages according to the product documentation.
Not sure if I should investigate on the device itself, or in my code.

Wondering if some of you have any problems with the stock WS nodes (not sure if any other available), or can give me some clues about where I should focus on to solve this problem .

Thanks !

Analyse messages over socket in terms of the size.

Also check in the node red log that there is not something else going on (node red crashing for example).

Thanks, but what do you mean exactly ? Over wireshark ?

You should be able to see ws traffic with browser developer tool. The size and frequency of messages may play critical role.