laravel-echo-server
laravel-echo-server copied to clipboard
Whisper broadcasting issue
Hello!
i am trying to use whisper to do "user is typing" notifications but i am runnign into the issue that no data is broadcasting.
i have this event that i am trying to fire
let channel = window.Echo.private('whisper') //twhisper
channel.whisper('typing',{
name: "someone"
})
and i am receiving it
window.Echo.private('whisper') //twhisper
.listenForWhisper('typing', (e) => {
console.log(e.name);
console.log("in here");
});
i am never reaching the "in here" console.log
here is echo-server.json
{
"authHost": "http://$HOST_F:8000",
"authEndpoint": "/broadcasting/auth",
"clients": [],
"database": "redis",
"databaseConfig": {
"redis": {
"host" : "$HOST_N",
"port" : "6379"
},
"sqlite": {
"databasePath": "/database/laravel-echo-server.sqlite"
}
},
"devMode": true,
"host": null,
"port": 6001,
"protocol": "http",
"socketio": {},
"sslCertPath": "",
"sslKeyPath": "",
"sslCertChainPath": "",
"sslPassphrase": "",
"subscribers": {
"http": true,
"redis": true
}
}
here is my broadcast
Broadcast::channel('whisper',function ($user){
return true;
});
i am not sure what else i can pass here to help figure out whats going on. My private and public channels are showing up just fine
this is my first time asking a question so sorry for my cluelessness. thanks a lot for your help