absinthe-graphql / absinthe-socket

Core JavaScript support for Absinthe WS-based operations
MIT License
150 stars 75 forks source link

fix: duplicate subscriptions #52

Open sanches89 opened 4 years ago

sanches89 commented 4 years ago

There is a frame of time between the socket creation and send a request that can cause duplicate subscriptions. To prevent that, it is necessary to only call pushRequest to notifiers that are appended at the moment that the handPush is called.