Skip to main content

SendSTOMPMessage

Structure

SendSTOMPMessage(sHost, sPort, sUser, sPassword, sTarget, bSSL, sMessage)

Parameters

ParameterTypeDescription
sHostStringHost of the server to connect to.
sPortStringPort to send the message to.
sUserStringUser to connect as
sPasswordStringPassword to connect as
sTargetStringTarget Queue or Topic to send message to
bSSLBooleanWhether to use SSL when connecting
sMessageStringThe message to send.

Return value

"Message Sent." or error message describing the problem sending.

Description

This function connects to a server using the STOMP protocol and attempts to send a message to it.

Example

SendSTOMPMessage("localhost", "61613", "", "", "/topic/DemoTarget", false, "Test message from IndySoft")
SendSTOMPMessage("localhost", "61613", "", "", "/queue/DemoTarget", false, "Test message from IndySoft")