Skip to content

message.clientId is null ??? #13

@MrGibbage

Description

@MrGibbage

Using the example code, the message received (IMessage), which has a clientId parameter, is always null. Should this not be containing the client ID of the sender? Thus, it should never be null??

public class Listener : IMessageListener { //private BayeuxClient client; public void onMessage(IClientSessionChannel channel, IMessage message) { IDictionary ss = (IDictionary)message.DataAsDictionary; String foo = (String)ss["foo"]; String senderClientId = message.ClientId; // is always null if (senderClientId.Equals(Form1.clientId)) //should crash here { MessageBox.Show("I sent a message to myself"); } else { MessageBox.Show(ss["foo"].ToString()); } } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions