Mercurial > cosocket
changeset 44:d6467f3845ad
Changed 'listen' endpoint to 'listen/multipart'.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Tue, 28 Apr 2009 08:32:25 -0700 |
parents | 728f162add5d |
children | 27785e0ac4d8 |
files | openwebchat.js openwebchat.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/openwebchat.js Mon Apr 27 23:46:54 2009 -0700 +++ b/openwebchat.js Tue Apr 28 08:32:25 2009 -0700 @@ -2,7 +2,7 @@ startMessageListener: function startMessageListener(onMessage) { var req = new XMLHttpRequest(); req.multipart = true; - req.open('GET', 'listen', true); + req.open('GET', 'listen/multipart', true); req.overrideMimeType('application/json'); req.addEventListener( "load",
--- a/openwebchat.py Mon Apr 27 23:46:54 2009 -0700 +++ b/openwebchat.py Tue Apr 28 08:32:25 2009 -0700 @@ -109,7 +109,7 @@ stringfile = cStringIO.StringIO('\n'.join(request[1:])) headers = mimetools.Message(stringfile) req_parts = request_line.split() - if req_parts[1] == '/listen': + if req_parts[1] == '/listen/multipart': yield self._until_multipart_header_sent(self.BOUNDARY) i = 0 while 1: