laravel-echo-ios
laravel-echo-ios copied to clipboard
Can ' t get data from channel.listen callBack
I' m creating an Echo instance with params then a add echo.connected( callback: { (data, ack) in print("connected") let channel = self.echo.privateChannel(channel: "myChannel" channel.listen(event: "ChatMessage") { (data,ack) in print(data) } }) I successfully have logs that I m connected to channel and subscribed to my "ChatMessage" event, and also I receive messages from my chat(in Logs), but i can't get data from callback! idk why , but it s not working! plz help me! the code doesn't go inside the callback, I checked with debugger