vue-echo icon indicating copy to clipboard operation
vue-echo copied to clipboard

listenForWhisper doesn't seem to be working

Open sergiocastrovale opened this issue 5 years ago • 0 comments

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?

sergiocastrovale avatar Dec 22 '18 04:12 sergiocastrovale