Description
Lonely, the Chinese name of go-space-chat, is a multi-user chat room built with Go, WebSockets, canvas and Protocol Buffers. The room is drawn with a 2D canvas that imitates a 3D view, and the eyes of the character follow the mouse. Players move with the WASD keys, press Space to type a message and Enter to send it, and click the top-left button to set a name, which takes effect when you click elsewhere. Users can change their gender and color, and messages are filtered for sensitive words. The front end uses Vue with canvas, WebSockets and protobuf, and the back end uses Go with WebSockets, protobuf and goroutines. The README recommends running it with docker-compose, after which the app is at localhost port 8081. For local runs, the web files are served from a dist folder on port 8081, and the WebSocket server listens on port 9000. The README also explains how to set a Go module proxy when dependencies fail to download, and how to regenerate the protobuf files. It lists two design questions it found interesting: infinite canvas, and game state synchronization.…
Highlights
- Multi-user chat room drawn on a canvas
- Sensitive word filtering
- Name, gender and color changes
- WASD movement and keyboard messaging
- Protobuf protocol between front end and server
Ratings & Reviews
No ratings yet
Be the first to rate Go Space Chat.
People also visit
Go Space Chat FAQ
What is this project?
It is a chat room with a canvas view, where users move a character around and send messages. The Chinese name is 孤独, meaning Lonely.
How do I run it with Docker?
The README recommends docker-compose. Clone the repository, run the compose command it shows, and open http://localhost:8081.
How do I run it without Docker?
Run the Go server locally. The README says the static site is served on port 8081 and the WebSocket endpoint is on port 9000, and gives the commands for the Go modules.
What are the controls?
Move with W, A, S and D, press Space to type a message and Enter to send it, and click the top-left button to change your name.
What is it built with?
The README lists Vue, canvas, WebSocket and protobuf on the front end, and Golang with WebSocket, protobuf and goroutines on the back end.
What are the best Go Space Chat alternatives?
Popular alternatives to Go Space Chat include Gochat, ChatApplication and Niltalk. See all Go Space Chat alternatives
