diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-09-15 00:41:45 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-09-15 00:41:45 -0400 |
commit | a306d46a1ee07504b56f8f1115b8693fdf7b92b5 (patch) | |
tree | b11287478ec2c3b4ec70516594dde01abe19c7e0 /termcast.py | |
parent | 33d96c5143da76252532da5f02fe96ab2a82732e (diff) | |
download | python-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.py | 4 |
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") |