Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

listenForWhisper doesn't seem to be working #23

Open
sergiocastrovale opened this issue Dec 22, 2018 · 0 comments
Open

listenForWhisper doesn't seem to be working #23

sergiocastrovale opened this issue Dec 22, 2018 · 0 comments

Comments

@sergiocastrovale
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant