-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hello,
I have a problem with this bundle as an example.
When I send a message returns "undefined: undefined."
I tried to see what was wrong but I did not understand where it is!
I modified the javascript file:
https://github.com/JDare/ClankChatBundle/blob/master/Resources/public/js/main.js#L45
function subscribeToRoom(session, room)
{
session.subscribe(_room, function(uri, payload){
console.log(payload); // <- this contain only message
appendChat(payload.from, payload.msg);
});
}and I noticed that the variable "payload" is not an object, but a string that contains only the message.
Could you kindly help us to understand what has gone wrong, to be able then to understand how it works?
Thank you so much for your work.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels