Answer the question
In order to leave comments, you need to log in
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."}}
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question