handling multiple clients with python websocket and nginx

Well, it turns out that you can simply solve the problem by removing nginx out of the picture. Just turn it off and then in the python code:

# just get rid of the host name
start_server = websockets.serve(receive_messages, 443)


except KeyboardInterrupt:
    print("server crashed")

From now on, you’ll be able to connect from any client device(s) at the same time by using your server’s public ipv4 address. This seems to be a useless question for the most part. But, I sure hope it helps someone.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top