apollographql / subscriptions-transport-ws

:arrows_clockwise: A WebSocket client + server for GraphQL subscriptions
https://www.npmjs.com/package/subscriptions-transport-ws
MIT License
1.52k stars 342 forks source link

docs: Add explanation for argument of close #838

Closed acro5piano closed 2 years ago

acro5piano commented 3 years ago

Hi, thank you for great work.

I've found the following issue. Some people (including me) want to reconnect manually, but there is no public method like reconnect. Instead, running client.close(false) reconnects manually, so I've added explanation for it.

https://github.com/apollographql/subscriptions-transport-ws/issues/226

apollo-cla commented 3 years ago

@acro5piano: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/