Skip to content

"from" contain nothing #1

@lughino

Description

@lughino

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions