hi,
you can't add http headers to requests to the Lightstreamer server made through our library. Btw this is not needed to send messages to the server.
Check the sources of the
ChatDemo, this is the code that sends messages to the server (an that are received by the notifyUserMessage)
[SYNTAX="JS"]var mex = "CHAT|" + text;
engineRef.sendMessage(mex, "Chats", null, 5000);[/SYNTAX]
check the API docs of
sendMessage for details on its input parameters
HTH