Skip to content

Commit

Permalink
add terminate method to client
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Feb 6, 2017
1 parent 0b7fb91 commit 538b20f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dataplicity/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.9"
__version__ = "0.4.10"
4 changes: 4 additions & 0 deletions dataplicity/m2m/wsclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,10 @@ def wait_ready(self, timeout=10):
self.ready_event.wait(timeout)
return self.identity

def terminate(self):
"""Terminate the websocket."""
self.app.terminate()

def send(self, packet, *args, **kwargs):
"""Send a packet. Will encode if necessary."""
if isinstance(packet, (bytes, text_type)):
Expand Down

0 comments on commit 538b20f

Please sign in to comment.