-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can ' t get data from channel.listen callBack #14
Comments
i � get the same issue . if you resolved . Please share solution with me |
When you instantiate Echo client you should obviously set some namespace. For example: |
Same here, adding namespace not helping, I see in logs that room connected, events are Handling in Logs, but callback of .listen doesn't firing... Update: |
Change namespace like @rutim7 will work fine . Thank you so much . |
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
The text was updated successfully, but these errors were encountered: