Skip to content
Advertisement

Tag: tornado

Hello world with Tornado and Javascript client

I would like to establish a simple two-way communication between a Tornado server and a Javascript client. When I run the server, followed by opening the page, the server prints out “get” as expected. However, while the server sends something back, the onmessage event never seems to be triggered in the client. Moreover, the Javascript console produces the following error:

Advertisement