listenForWhisper doesn't seem to be working
sergiocastrovale opened this issue · 0 comments
sergiocastrovale commented
I can't seem to make whispers go from one end to the other. Here's my code:
answers.vue (a user clicks on an answer, a whisper is sent)
this.$echo.private('answer')
.whisper('answering', {
userId: this.$auth.user().id
})
manage.vue (where the owner should receive the whisper)
mounted () {
this.$echo.private('answer')
.listenForWhisper('answering', (e) => {
console.log('answering ...', e);
})
},
Whenever I try to whisper, nothing happens. Any idea why?