jbmusso / gremlin-javascript

JavaScript tools for graph processing in Node.js and the browser inspired by the Apache TinkerPop API
MIT License
214 stars 63 forks source link

Enable WebSocket automatic reconnection #84

Open jbmusso opened 7 years ago

phani1kumar commented 6 years ago

Hi @jbmusso thank you very much for the lovely plugin. This made my development lot easier. I see the websocket connections gets dropped intermittently, is there a work around for this? can I continuously poll database to keep the connection open?

I mean to say, I've created a firebase cloud function which connects to a JanusGraph database server running on port 80. Now the cloud function gets fired based on some user actions, which I don't have control off. What happens is for some users the connection simply timesout. For others, hitting next to the previous failed request, the connection works properly!

I think this is related to this automatic reconnection that you have added here.

Until this is fixed is there any work around that you would suggest for my case?