Lightstreamer .Net Standard Client 4.0.0
ContentsIndexHome
PreviousUpNext
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.  

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

 

C++
public: void SendMessage(string message);
C#
public virtual void SendMessage(string message);
Visual Basic
Public virtual Function SendMessage(message As string) As void
Parameters 
Description 
string message 
Any text string, to be interpreted by the Metadata Adapter. It should not be null.  
Exceptions 
Description 
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.