-
Notifications
You must be signed in to change notification settings - Fork 24
Description
Hi!
I am building application which synchronizes live with EOS blockchain. I established graphQL connection like this using dfuse-js:
this.dFuseClient.graphql(graphQLQuery, async (message) => { // do something });
My connection hang up after a few days and I am wondering how can I prevent it in the future?
I think terminal message I got was:
console.log(message); // { type: 'complete' }
and just in case one error message before I got:
console.log(message); // { type: 'error', errors: [ { message: 'graphql: hammer search result: rpc error: code = Unavailable desc = transport is closing (trace_id: 4bba6b2d211cb515713be5698c2014e1)' } ], terminal: true }
What should I do in such situation?
How can I make sure connection was closed so I can re establish it?
Or how to make sure connection won't hang up?