-
-
Save christiannwamba/5cf7bdd74c7c2cfbef9d573d15b5e4df to your computer and use it in GitHub Desktop.
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
// app.js | |
subscribeToEventChannel() { | |
const channel = this.pusher.subscribe('trade'); | |
channel.bind('stock', data => { | |
this.updateChartData(data) | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment