diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-06-04 20:15:19 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-06-04 20:15:19 +0100 |
commit | 26328f5c09af9076ade44388f620deb6b22e0eab (patch) | |
tree | 35854cb144db77db8f6e89a337247e461c854f0c /server.py | |
parent | 2d93787b926cbfe1e9b33e66e1900613d320b090 (diff) |
listen to the world instead of localhost
it is dangerous, but that's what is interesting !
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'server.py')
-rwxr-xr-x | server.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -59,7 +59,7 @@ def message_received_handler(client, server, message): server.send_message(client, res) def main(): - server = WebsocketServer(1236) + server = WebsocketServer(1236, '0.0.0.0') server.set_fn_new_client(new_client_handler) server.set_fn_client_left(client_left_handler) server.set_fn_message_received(message_received_handler) |