It’s not what you asked, I understood after I clicked the hystrix link, but so I will post the comment in case it helps:
The node library "got" is a good alternative to the "request" node library and will retry automatically the HTTP requests that failed for technical reasons.
I use a home grown web socket solution that makes use of message queues. If the connection is solid all messages are sent in order, but otherwise the messages are stored in an array as part of application state until the connection becomes healthy.
The node library "got" is a good alternative to the "request" node library and will retry automatically the HTTP requests that failed for technical reasons.