using websockets, trying re-render page everytime server pings it, error keep getting:
file "/usr/local/lib/python3.4/dist-packages/tornado/web.py", line 781, in render self.finish(html) runtimeerror: method not supported web sockets is there sort of way around this? there way can call render without calling finish() @ end?
the method isn't supported because render writes http response, can't once you've converted connection http websockets. closest equivalent self.write_message(self.render_string('foo.html')), javascript code in browser receive messages , replace contents of page.
Comments
Post a Comment