1. Benjamin Smith
  2. python-stomp


Benjamin Smith  committed af131d9

Add clientid to simple interface. Bump version.

  • Participants
  • Parent commits 83b4ee6
  • Branches default
  • Tags stompy-0.2.6

Comments (0)

Files changed (2)

File stompy/distmeta.py

View file
 """Implementation of the STOMP protocol in Python.
-VERSION = (0, 2, 5)
+VERSION = (0, 2, 6)
 __version__ = ".".join(map(str, VERSION))
 __author__ = "Benjamin W. Smith"
 __contact__ = "benjaminwarfield@just-another.net"

File stompy/simple.py

View file
         return self.stomp.send(conf)
-    def connect(self, username=None, password=None):
+    def connect(self, username=None, password=None, clientid=None):
         """Connect to the broker.
         :keyword username: Username for connection
         :keyword password: Password for connection
+        :keyword clientid: Client identification for persistent connections
         :raises :exc:`stompy.stomp.ConnectionError`:
             if the connection was unsuccessful.
             if the connection timed out.
-        self.stomp.connect(username=username, password=password)
+        self.stomp.connect(username=username, password=password, clientid=clientid)
     def disconnect(self):
         """Disconnect from the broker."""