Skip to content

message.clientId is null ??? #13

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()); } } }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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