aboutsummaryrefslogtreecommitdiffstats
path: root/termcast.py
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-09-15 02:26:10 -0400
committerJesse Luehrs <doy@tozt.net>2014-09-15 02:26:10 -0400
commit0b3542344af0d5723ba386c0cdfccd9a11eff6d6 (patch)
tree95eb716c1cff3bdd4e2e4d56c963099f71f2975e /termcast.py
parent28d067c6d814d8aa53c8b8541d0cedb630409197 (diff)
downloadpython-termcast-server-0b3542344af0d5723ba386c0cdfccd9a11eff6d6.tar.gz
python-termcast-server-0b3542344af0d5723ba386c0cdfccd9a11eff6d6.zip
also notify on disconnects
Diffstat (limited to 'termcast.py')
-rw-r--r--termcast.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/termcast.py b/termcast.py
index e849fe8..40262e0 100644
--- a/termcast.py
+++ b/termcast.py
@@ -81,7 +81,10 @@ class Connection(object):
if connection_id != self.connection_id:
return
self.publisher.notify("new_data", self.connection_id, self.handler.buf, b'')
- self.client.send("msg watcher connected")
+ self.client.send(b"msg watcher connected\n")
+
+ def msg_viewer_disconnect(self, connection_id):
+ self.client.send(b"msg watcher disconnected\n")
def request_get_streamers(self):
return {