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 --- ssh.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ssh.py') diff --git a/ssh.py b/ssh.py index 52c9056..127f1d7 100644 --- a/ssh.py +++ b/ssh.py @@ -23,7 +23,8 @@ class Connection(object): # XXX need to have the user select a stream, and then pass the stream's # id in here - self.publisher.publish("new_viewer", chan, "some-random-id") + contents = self.publisher.request_one("new_viewer", "some-random-id") + chan.send(contents) time.sleep(5) chan.close() -- cgit v1.2.3-54-g00ecf