hi,

After fireing ls.sendMessage(message) LS console shows an error "unknown function" or something.
Am I too far from what I am looking for (sending message back to server)?
are you sure that you call the sendMessage method only once the ls object is initiated?
The error you're receiving tells you that the object does not have such method and this make sense because before being a LightstreamerEngine instance your ls variable contains a string

for a quick check try to start with a null ls variable. The error message should change.

let me know if I'm wrong.