| Did you know ... | Search Documentation: |
| Predicate stomp_connection/6 |
call(Callback, Command, Connection, Header, Body)
Where command is one of the commands below. Header is a dict
holding the STOMP frame header, where all values are strings except
for the 'content-length' key value which is passed as an integer.
Body is a string or, if the data is of the type
application/json, a dict. If a JSON body cannot be parsed, a
warning is printed and Body is the string. Note that message
headers and body are under control of the sender of the message.
content-type of the message is
application/json and a string otherwise.message.Note that stomp_teardown/1 causes the receiving and heartbeat thread to be signalled with abort/0.
Options processed:
false600 (10 minutes).application/json content to Prolog. Default is [].content-length header,
a larger body is skipped and a warning is printed. Otherwise
the connection is closed.
Both size limits accept infinite to remove the limit.
| Address | - is a valid address for tcp_connect/3. Normally a term
Host:Port, e.g., localhost:32772. |
| Host | - is a path denoting the STOMP host. Often just /. |
| Headers | - is a dict with STOMP headers used for the CONNECT
request. |
| Connection | - is an opaque ground term that identifies the connection. |