A
A
Analka2020-01-31 15:28:08
Push technologies
Analka, 2020-01-31 15:28:08

Pucher gives client error?

how to solve this problem?

{"event":"client-typing","data":{"name":"Mouse"},"channel":"private-chat.21"}
{"event":"pusher:error","data":{"code":null,"message":"To send client events, you must enable this feature in the Settings page of your dashboard."}}

I want to display a message that the user is typing

actionUser(){
    window.Echo.private('chat.' + this.dialogSelect)
        .whisper('typing', {
            name: this.userAuth.fullname
        });
},

window.Echo.private('chat.' + this.dialogSelect)
  .listen('DialogMessage',({data}) => {
          this.messages.push(data);
          this.isTyping = false;
  })
  .listenForWhisper('typing', (e) => {
      console.log(e);
      this.isTyping = e;
      if (this.typingTimer) clearTimeout(this.typingTimer);
      this.typingTimer = setTimeout(() => {
          this.isTyping = false;
      }, 2000);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Analka, 2020-01-31
@Analka

Doper, set in the settings on the site pusher Enable client events

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question