Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
39
try
:
Callers
nothing calls this directly
Calls
2
print
Function · 0.85
close
Method · 0.45
Tested by
no test coverage detected