From a306d46a1ee07504b56f8f1115b8693fdf7b92b5 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 15 Sep 2014 00:41:45 -0400 Subject: allow different kinds of message publishing --- termcast.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'termcast.py') 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") -- cgit v1.2.3-54-g00ecf