WebSocket Chatroom
Overview
Proof of concept for a simple chatroom.
To host or join a chatroom, enter the IP address and port of the server, as well as the name of the chatroom to host/join, and the name to use in the chatroom.
Features
- clients can pick their name and colour to appear when they send messages
- hosts can optionally specify a password for the chatroom
- the server can optionally encrypt all connections using TLS
- the server can host multiple chatrooms simultaneously
- the server can maintain chatrooms with no connected clients, up to a timeout period
Requirements
- the server runs as a standalone Windows/Linux executable
- the server host must have the specified port whitelisted in firewall rules with port forwarding enabled if necessary
- if the server is started with the --use-tls option, the browser client won't work due to itch prohibiting TLS with self-signed certificates
Based on the websocket_chat demo from Godot demos. Uses modified versions of the WebSocketClient and WebSocketServer classes from that demo.

Leave a comment
Log in with itch.io to leave a comment.