MCPcopy Create free account
hub / github.com/apache/qpid-proton / on_message

Method on_message

python/examples/queue_browser.py:33–36  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

31 event.container.create_receiver(conn, "examples", options=Copy())
32
33 def on_message(self, event):
34 print(event.message)
35 if event.receiver.queued == 0 and event.receiver.drained:
36 event.connection.close()
37
38
39try:

Callers

nothing calls this directly

Calls 2

printFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected