aboutsummaryrefslogtreecommitdiffstats
path: root/termcast.py
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-09-15 00:41:45 -0400
committerJesse Luehrs <doy@tozt.net>2014-09-15 00:41:45 -0400
commita306d46a1ee07504b56f8f1115b8693fdf7b92b5 (patch)
treeb11287478ec2c3b4ec70516594dde01abe19c7e0 /termcast.py
parent33d96c5143da76252532da5f02fe96ab2a82732e (diff)
downloadpython-termcast-server-a306d46a1ee07504b56f8f1115b8693fdf7b92b5.tar.gz
python-termcast-server-a306d46a1ee07504b56f8f1115b8693fdf7b92b5.zip
allow different kinds of message publishing
Diffstat (limited to 'termcast.py')
-rw-r--r--termcast.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/termcast.py b/termcast.py
index 1514fd9..fcc43c6 100644
--- a/termcast.py
+++ b/termcast.py
@@ -75,9 +75,9 @@ class Connection(object):
else:
return
- def msg_new_viewer(self, sock, connection_id):
+ def request_new_viewer(self, connection_id):
# XXX restore this once we start passing in meaningful connection ids
# if connection_id != self.connection_id:
# return
term_contents = self.handler.get_term()
- sock.send(term_contents.replace("\n", "\r\n"))
+ return term_contents.replace("\n", "\r\n")