Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// follow 'notifications' feed
this.notification = this.client.feed('notification', this.props.user.id, this.props.tokens.notification)
this.notification
.subscribe(data => {
this.props.dispatch(StreamActions.event(data))
})
.then(() => {
//console.log('Full (Notifications): Connected to faye channel, waiting for realtime updates');
}, (err) => {
console.error('Full (Notifications): Could not estabilsh faye connection', err);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.