Questions tagged [mod-pywebsocket]

WebSocket extension for Apache HTTP Server, mod_pywebsocket, from the pywebsocket project.

The pywebsocket project aims to provide a WebSocket standalone server and a WebSocket extension for Apache HTTP Server, mod_pywebsocket.

pywebsocket is intended for testing or experimental purposes. To run with Apache HTTP Server, mod_python is required. For wss, mod_ssl is also required.

source: google code site

16 questions
7
votes
1 answer

Websocket implementation in Python 3

Trying to create a web-front end for a Python3 backed application. The application will require bi-directional streaming which sounded like a good opportunity to look into websockets. My first inclination was to use something already existing, and…
Hardbyte
  • 1,467
  • 13
  • 25
4
votes
1 answer

Why would a websocket created with pywebsocket be closed automatically?

I want to test websocket with pywebsocket, after some configurations following some instructions I found on the Internet, I finally got it run. Then I want to try the echo example:…
wong2
  • 34,358
  • 48
  • 134
  • 179
3
votes
1 answer

client websocket implementation

I'm running a stress test and need to run many websocket clients on the same machine. I don't think a normal implementation for web browser is a good idea for many clients and am looking for a way to be able to run them on console without…
Silvia
  • 269
  • 2
  • 5
  • 17
2
votes
2 answers

pywebsocket doesnt work

This is how I've installed mod_pywebsocket as apache extension root@senior:/var/www# wget http://pywebsocket.googlecode.com/files/mod_pywebsocket-0.7.8.tar.gz root@senior:/var/www# tar xvf mod_pywebsocket-0.7.8.tar.gz root@senior:/var/www# cd…
Buksy
  • 11,571
  • 9
  • 62
  • 69
1
vote
1 answer

Multithreaded websocket client does not exit properly

I wrote a multithreaded web-socket client class so that the user's (main) thread does not blocks on the run_forever() method call. The code seems to work fine, except in the end, when I am stopping the thread, it does not close the web-socket…
AnilJ
  • 1,951
  • 2
  • 33
  • 60
1
vote
1 answer

websocket - Maximum number of clients

I'm running a stress test on a websocket server to measure how many clients it can serve simultaneously and on what depends that number. The server implementation I'm using is pywebsocket, the extension for apache server. Apparently, this creates a…
Silvia
  • 269
  • 2
  • 5
  • 17
1
vote
0 answers

Sending a message from one system to another using websockets

I have installed python-mod-pywebsocket on my ubuntu system. I'm trying to test websocket. When I send and receive a message in the same html file, then it works fine, but when I'm doing that in different files, it doesn't work as expected. I'm…
ndh
  • 331
  • 1
  • 4
  • 12
1
vote
1 answer

Pywebsocket error

I'm new to python and websockets and would like to learn more about how to use pywebsocket. Currently, Im editing examples from pywebsocket package, unfortunately, I'm unable to understand my error in following code: _GOODBYE_MESSAGE =…
Buksy
  • 11,571
  • 9
  • 62
  • 69
1
vote
0 answers

Distributed computing using Apache with mod_pywebsocket

I'm quite new in Apache so please be patient. I'm trying to write distributed application which uses WebSocket protocol to communicate with each node. What is important it must work in client - sever architecture. It means that client (for example…
0
votes
1 answer

handler for python HTTPServer that uses threads

id like to write a handler for the standalone server coming with pywebsocket (http://code.google.com/p/pywebsocket) that uses a thread. in the example coming with pywebsocket the handler is just a file with a function: def…
Elisa
  • 1
  • 1
0
votes
1 answer

Does mod_pywebsocket have a non-blocking version of receive_message?

request.ws_stream.receive_message() blocks. Is there an equivalent that doesn't? Can it be used with select?
nmichaels
  • 49,466
  • 12
  • 107
  • 135
0
votes
1 answer

Is pywebsocket good for a production environment?

Is it a good idea to use pywebsocket in a production environment, since their google developer page states ... pywebsocket is intended for testing or experimental purposes. Moreover what would the specific drawbacks of using it be? Are there…
Levite
  • 17,263
  • 8
  • 50
  • 50
0
votes
1 answer

Connect two clients in websocket with PyWebSocket

i am new to websocket using pywebsocket, basically trying to create a simple chat application with websocket and pywebsocket. Until now i am done with following script if ("WebSocket" in window) { //alert("WebSocket is supported by your…
Ichigo Kurosaki
  • 3,765
  • 8
  • 41
  • 56
0
votes
1 answer

python setup.py install SyntaxError: invalid syntax 926

i'm trying to install "mod_pywebsocket" on CentOS 5.9 32 bit, by following this guide "https://code.google.com/p/websocket-sample/wiki/HowToInstallMod_pywebsocket" But with the command "sudo python setup.py install" i see an error: [root@localhost…
0
votes
1 answer

Pywebsocket "rooms" or "topic" concept

I'm experimenting with different ways to deliver data to some HTML5 pages through MQTT. I've looked at Node.js together with Socket.IO and it seems like a nice solution since Socket.IO has a "room" concept which is easily translated to a MQTT…
span
  • 5,405
  • 9
  • 57
  • 115
1
2