Skip to main content

GetSTOMPMessage

Structure

GetSTOMPMessage(sHost, sPort, sUser, sPassword, sTarget, bSSL, iTimeout)

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
iTimeoutIntegerNumber of seconds to wait before timing out

Return value

The message found, or an error message describing the problem sending.

Description

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

Example

GetSTOMPMessage("localhost", "61613", "", "", "/topic/DemoTarget", false, 1)
GetSTOMPMessage("localhost", "61613", "", "", "/queue/DemoTarget", false, 1)