laravel-echo-ios icon indicating copy to clipboard operation
laravel-echo-ios copied to clipboard

Laravel echo Whisper()/listenForWhisper()

Open nielsezeka opened this issue 5 years ago • 1 comments

I follow the docs that lead me to :"See full Echo documentation for all available methods" So the Echo documentation i want to use the broadcast in room by using Whisper function. I checked and it completely existed in code. But when i try to broadcast by:

guard let channelEmit = channel as? IPrivateChannel else{ return } channelEmit.whisper(eventName: "xxxx", data: [])

Actually packet was emit to the server as the socketio log recorded. So i can make sure this function called and it actually send some data to server. But the problems is their is nothing received in another client(s) when i try to using listening code: _ = channel!.listenForWhisper(event: "xxxx", callback: { (data, ack) in print("received") })

So could you please help me on this problem? This repo support broadcast as Echo documentation describe?

nielsezeka avatar May 29 '19 08:05 nielsezeka