From 0b3542344af0d5723ba386c0cdfccd9a11eff6d6 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 15 Sep 2014 02:26:10 -0400 Subject: also notify on disconnects --- termcast.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'termcast.py') 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 { -- cgit v1.2.3-54-g00ecf