Skip to content

Commit f181e44

Browse files
committed
add new send method send_noreceipt()
1 parent c975767 commit f181e44

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

stompy/stomp.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,18 @@ def send(self, conf=None):
8484
... 'persistent': 'true'})
8585
8686
"""
87+
self._send(conf,True)
88+
89+
def send_noreceipt(self,conf=None):
90+
"""Send message to STOMP server without receipt
91+
"""
92+
self._send(conf,False)
93+
94+
def _send(self,conf=None,receipt)
8795
headers = dict(conf)
8896
body = headers.pop("body", "")
8997
return self._send_command("SEND", headers, extra={"body": body},
90-
want_receipt=True)
98+
want_receipt=reveipt)
9199

92100
def _build_frame(self, *args, **kwargs):
93101
self._connected_or_raise()

0 commit comments

Comments
 (0)