Mercurial > cosocket
changeset 60:aa0763886ec9
open web chat now uses a separate channel for each conversation.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Tue, 28 Apr 2009 22:10:24 -0700 |
parents | b0f802c4fafc |
children | c1b46b60e838 |
files | openwebchat.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/openwebchat.py Tue Apr 28 22:07:52 2009 -0700 +++ b/openwebchat.py Tue Apr 28 22:10:24 2009 -0700 @@ -151,13 +151,13 @@ msg = json.dumps(conv[i]) i += 1 yield self._until_multipart_part_sent(self.BOUNDARY, msg) - yield channels.until_message_received('new-message') + yield channels.until_message_received(conv_name) elif page == 'send': length = int(headers.getheader('Content-Length', 0)) msg = yield until_received(bytes = length) conv = self._convs.get(conv_name) conv.append(json.loads(msg)) - yield channels.until_message_sent('new-message', None) + yield channels.until_message_sent(conv_name, None) yield self._until_http_response_sent('sent.') elif page in ['', 'jquery.js', 'openwebchat.js', 'json2.js', 'openwebchat.css']: