I'm trying to create a simple algorithmic trader using the node.js GDAX library. I have an implementation that works fairly well however the websocket is randomly freezing with no close event emitted.i have searched the forums but cannot find a solution to this, my only guess is that the server is ceasing to emit messages as the close event is not transmitted.
I'm fairly new to node.js and websocket so I'm not even sure where to look.
FYI I have code that will automatically re-connect the socket on close but I'm not sure how to implement this if I don't have a trigger event.