File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ def disconnect(self, conf=None):
6868 pass
6969 self .connected = False
7070
71- def send (self , conf = None ):
71+ def send (self , conf = None , receipt = True ):
7272 """Send message to STOMP server
7373
7474 You'll need to pass the body and any other headers your
@@ -84,18 +84,10 @@ 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 )
9587 headers = dict (conf )
9688 body = headers .pop ("body" , "" )
9789 return self ._send_command ("SEND" , headers , extra = {"body" : body },
98- want_receipt = reveipt )
90+ want_receipt = receipt )
9991
10092 def _build_frame (self , * args , ** kwargs ):
10193 self ._connected_or_raise ()
You can’t perform that action at this time.
0 commit comments