A simple Tcp chat app for multiple humans(or robots, depending on where your priorities are) that uses
tornado.websockets.WebsocketHandler
which allows for bidirectional communication between the browser and server.
tornado.websockets.WebsocketHandler
implements the final version of the WebSocket protocol as defined in RFC 6455.
Certain browser versions (notably Safari 5.x) implemented an earlier draft of the protocol (known as “draft 76”)
and are not compatible with this module.
Read the docs here
-
Python 3.7+
-
Tornado
pip install Tornado
Here's a screen recording showing multiple clients(2 clients chatting with each other inreal time). I made it so that the server can handle 30 connections. It also saves the chats in a chatlog file
This project is under the mit license