You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! First of all thanks for your time and your work on making and maintaining this lib! 👏
We're trying to migrate from the basic 'graphql-subscriptions' package to this one.
We have a use case in which we don't just publish a single change, e.g. a plain object { ... }, but a bunch of them; so we publish a Set([ ... ]) of changes in one shot. The problem is that the code is doing this:
Oh, I've just realised that this feature request isn't really needed for this particular case, because if we convert the Set to Array before publishing, and viceversa on the Subscription resolve()... it still works. 😅
constchanges=newSet();changes.add({ whatever });// …pubSubInstance.publish('TOPIC',{customChangeSet: [...changes],});// then on the subscription resolver:
resolve: (payload,args,context,info)=>{constchanges=newSet(payload.customChangeSet);// …}
Sorry for the noise! Let me know anyway if you would keep this open since it's still a missing feature if you want to publish e.g. binary data.
Thanks!
nuragic
changed the title
Support messages different than strings
[Feature] Support messages different than strings (messageBuffer)
Sep 27, 2019
Thanks for the suggestion! I would love to review a PR if someone would like to have a go with it. Preferably, someone that will use this feature on production so they could give us good feedback regarding the results.
Hello! First of all thanks for your time and your work on making and maintaining this lib! 👏
We're trying to migrate from the basic
'graphql-subscriptions'
package to this one.We have a use case in which we don't just publish a single change, e.g. a plain object
{ ... }
, but a bunch of them; so we publish aSet([ ... ])
of changes in one shot. The problem is that the code is doing this:Here the
Set
is lost because of the assumption that everything would be a String. 😄However,
ioredis
supports publishing Buffers as well:Would you be open to add this feature?
Many thanks! 🙏
The text was updated successfully, but these errors were encountered: