hasura / hasura/nodejs-graphql-subscriptions-boilerplate

Close client to exit process gracefully

Open
#6 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
78
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Thanks a lot for this example, it's very useful.

I thought I'd mention something I noticed when using this, which is that the process doesn't exit because the client created with `new SubscriptionClient` keeps the socket connection open.

To exit gracefully the client needs to be closed, for example by invoking its `close()` method. It may be worth adding to the docs or the examples.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.