Answer the question
In order to leave comments, you need to log in
How to deploy python Websocket server on Windows?
There is a Websocket server script written in Python. Listening on a specific port (4446)
How to deploy this python Websocket server on Windows?
Or still run it in the console?
Maybe somehow bind to IIS?
from websocket_server import WebsocketServer
import time
def new_client(client, server):
server.send_message(client,'Hi')
def msg_received(client, server, mess):
print 'Mess=',mess
server = WebsocketServer(4446, host='127.0.0.1')
server.set_fn_new_client(new_client)
server.set_fn_message_received(msg_received)
server.run_forever()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question