Created
November 5, 2016 06:42
-
-
Save aligos/806b817d040335215c71ba7338a8f71b to your computer and use it in GitHub Desktop.
subscriptions js votemon-server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { PubSub, SubscriptionManager } from 'graphql-subscriptions'; | |
import schema from './schema'; | |
const pubsub = new PubSub(); | |
const subscriptionManager = new SubscriptionManager({ | |
schema, | |
pubsub, | |
}); | |
export { subscriptionManager, pubsub }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment