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
Imagine as though you wanted to make a Slackbot. Let's assert folks using the Slackbot go through a step to store their unique authentication credentials (i.e. a JWT token) with the Slackbot so that when it interacts with the service that feeds the Slackbot data, it does so with their identity.
Now, imagine as though to implement this Slackbot one wanted to use Cashay—in part because the API the Slackbot wishes to interact with behind the scenes is a GraphQL API, but also because Cashay's pub/sub pattern and redux bindings make for a wonderful foundation for building a stateful bot.
If I wanted to use Cashay to implement this Slackbot, I think I'd need to create and track multiple Cashay instances (one per set of user authentication credentials), right? Could the cashay module export the class definition so I can create new instances myself?
Is there another pattern I should consider?
The text was updated successfully, but these errors were encountered:
I'm exploring using Cashay more generally as a GraphQL client embedded within a micro-service. In this case, a server that implements a chatbot. Let's talk about it!
I'm exploring using Cashay more generally as a GraphQL client embedded
within a micro-service. In this case, a server that implements a chatbot.
Let's talk about it!
Imagine as though you wanted to make a Slackbot. Let's assert folks using the Slackbot go through a step to store their unique authentication credentials (i.e. a JWT token) with the Slackbot so that when it interacts with the service that feeds the Slackbot data, it does so with their identity.
Now, imagine as though to implement this Slackbot one wanted to use Cashay—in part because the API the Slackbot wishes to interact with behind the scenes is a GraphQL API, but also because Cashay's pub/sub pattern and redux bindings make for a wonderful foundation for building a stateful bot.
Presently Cashay.js exports a singleton like:
If I wanted to use Cashay to implement this Slackbot, I think I'd need to create and track multiple Cashay instances (one per set of user authentication credentials), right? Could the cashay module export the class definition so I can create new instances myself?
Is there another pattern I should consider?
The text was updated successfully, but these errors were encountered: