use msgspec to parse message
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s

This commit is contained in:
Thomas Peetz
2026-07-31 04:07:07 +02:00
parent def3f7ea11
commit c4932a4665
-2
View File
@@ -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)