"from" contain nothing
Opened this issue · 4 comments
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.
I have the same problem. Is there any solution?
Same problem please any help ?
+1
You must add to global config.yml RPC and Topic via Docs: https://github.com/JDare/ClankBundle/tree/master/Resources/docs