sendString method

void sendString (String destination, String message, { Map<String, String> headers })

Sends a String-typed message.

  • stomp.send("/foo", "Hi, there");
    
  • Note: it sets the content-length and content-type header automatically
  • if not specified (default content-type: text/plain).
    • message - the message.

Implementation

void sendString(String destination, String message,
    {Map<String, String> headers});