django2/demo/app/queue/send.py
Peter Kotyczka 679d7d1b58 smc
2024-03-24 22:58:33 +01:00

6 lines
185 B
Python
Executable File

import stomp
conn = stomp.Connection()
conn.connect('smx', 'smx', wait=True)
conn.send(content_type='application/raw',body=' Hello Stomp ', destination='/queue/test')
conn.disconnect()