SendSTOMPMessage
Structure
SendSTOMPMessage(sHost, sPort, sUser, sPassword, sTarget, bSSL, sMessage)
Parameters
| Parameter | Type | Description
| sHost | String | Host of the server to connect to.sPort | String | Port to send the message to.sUser | String | User to connect assPassword | String | Password to connect assTarget | String | Target Queue or Topic to send message tobSSL | Boolean | Whether to use SSL when connectingsMessage | String | The 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")
Application Compatibility
All |