diff --git a/dataplicity/_version.py b/dataplicity/_version.py index 574c066..805e7c4 100644 --- a/dataplicity/_version.py +++ b/dataplicity/_version.py @@ -1 +1 @@ -__version__ = "0.4.9" +__version__ = "0.4.10" diff --git a/dataplicity/m2m/wsclient.py b/dataplicity/m2m/wsclient.py index 00c08b8..9adc767 100644 --- a/dataplicity/m2m/wsclient.py +++ b/dataplicity/m2m/wsclient.py @@ -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)):