Lightstreamer PCL (Portable Class Libraries) Client 3.0.0
LSClient.SendMessage Method (string)

Sends a message to Lightstreamer Server. The message is associated to the current session and is interpreted and managed by the Metadata Adapter related to the session. 

The method is blocking; it returns only after receiving the Server answer upon the request submission. See OpenConnection for details on timeout settings.  

Messages sent through this method are never batched, use the overload of this method accepting MessageInfo instances to send a batch of messages 


public: void SendMessage(string message);
public virtual void SendMessage(string message);
Visual Basic
Public virtual Function SendMessage(message As string) As void
string message 
Any text string, to be interpreted by the Metadata Adapter. It should not be null.  
in case of connection problems. 
in case of errors in the supplied parameters or in Server answer. 
in case the Server has refused the connection request because of the constraints imposed either by the Metadata Adapter or by Server configuration.