Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

Tagged with
0 votes
1 answer
2k views

How to reconnect to a Web Socket when I refresh the client web page

When I refresh my client web-page, I stop receiving data from a tornado socket server. How can I reconnect to the stream? I have tried appending the connection objects to a list and then deleting the ...
Edison's user avatar
  • 1,020
1 vote
1 answer
7k views

Websocket connection between socket.io client and tornado python server

I'm trying to get websockets to work between two machines. One pc and one raspberry pi to be exact. On the PC I'm using socket.io as a client to connect to the server on the raspberry pi. With the ...
kirijanker's user avatar
5 votes
2 answers
11k views

(tornadio2) failed: Error during WebSocket handshake: Unexpected response code: 403

when I run my code on my pc and try to connect socket with my index.html on localhost no problem but when I try to run my code on server and try to connect socket with index.html(it locate on my pc) I ...
Ozan's user avatar
  • 55
9 votes
2 answers
8k views

websocket server for django application

I have a django application need to be deployed under Apache HTTP Server, also i need push event to client's web browser at real time. I'm rather new to python, could anyone suggest some websocket ...
Simon Wang's user avatar
  • 2,273
0 votes
1 answer
103 views

Tornado timeouts and server failured

I am working now on real-time game based on tornado, tornado-sockjs. There are a lot of different timeout strategies in our game application: TIMEOUT_GAME_IF_NOBODY, TIMEOUT_GAME_IF_SERVER_OFF. These ...
Rustem K's user avatar
  • 1,242
1 vote
1 answer
1k views

Tornadio2 + Socket.io load testing

I'm building a real-time application with redis, tornadio2 and socket.io. It works fine on my local machine, but before putting it in production, I would like to do some stress testing. This way I can ...
Ihor Pochechuiev's user avatar
20 votes
3 answers
9k views

python Socket.IO client for sending broadcast messages to TornadIO2 server

I am building a realtime web application. I want to be able to send broadcast messages from the server-side implementation of my python application. Here is the setup: socketio.js on the client-side ...
Alp's user avatar
  • 29.8k
3 votes
4 answers
5k views

Haproxy socket.io websocket proxy always falls back to long polling

Hey i have been trying to get Haproxy proxying websocket connections from socket.io I have read nearly everything i can find on google, and tried countless variations of the haproxy.cfg but no matter ...
Mike Waites's user avatar
  • 1,728
1 vote
1 answer
708 views

How to turn a tornado HTTPRequest into a Django HttpRequest or WSGIRequest?

I'm writing a socket.io app using Django and TornadIO2/Tornado. In the TonradIO2 Session, I have access to Tornado's HTTPRequest objects. However, I have no access to a django request object in my ...
Tony Abou-Assaleh's user avatar
3 votes
1 answer
555 views

Realtime Socket.IO scaling problem - python

I'm trying to do something like the stream on Facebook, with socket.io 0.6 and tornadio. Each user has is own comet channel/group in his wall. I'm sending a comet message to the wall of all my ...
Tiago Moutinho's user avatar
2 votes
1 answer
3k views

Socket.io handler using Gevent / Tornado & Flask

can anyone show me and example of how to handle a generic socket.io connection (depends on the client browser, could be websockets, or xhr-longpolling, etc..) using gevent and flask, or maybe flask ...
Redouane Zait's user avatar
3 votes
1 answer
2k views

Django as middleware in a tornado app

I am trying to run tornadio (socket.io for python) to work with django. Is there are way to do something like this in tornado (running django as middleware), or can I access tornadio from within ...
Craig's user avatar
  • 7,681