This commit is contained in:
@@ -68,13 +68,11 @@ if __name__ == '__main__':
|
||||
host = [(args.server, args.port)]
|
||||
conn_add = stomp.Connection(host_and_ports=host)
|
||||
conn_add.set_listener('', AddLinkListener(logger, conn_add))
|
||||
conn_add.start()
|
||||
conn_add.connect(username='artemis', passcode='artemis', wait=True)
|
||||
conn_add.subscribe(destination='add_link', id=1, ack='auto', headers={})
|
||||
|
||||
conn_update = stomp.Connection(host_and_ports=host)
|
||||
conn_update.set_listener('', UpdateTitleListener(logger, conn_update))
|
||||
conn_update.start()
|
||||
conn_update.connect(username='artemis', passcode='artemis', wait=True)
|
||||
conn_update.subscribe(destination='update_title', id=1, ack='auto', headers={})
|
||||
time.sleep(5)
|
||||
|
||||
Reference in New Issue
Block a user