- Golang :
- Purpose : Build a simple server using the GIN framework and Gorilla websocket
- Environment : Window 10 Professional
- install from VSCode (go 1.17)
-
Run the server under the root project path (Window)
go run .\main.go
-
Open the website
http://127.0.0.1:8080/
- input the username
- input the chat message
- Optimize client mechanism
- More fool-proof mechanism
- Hub and different chat room
- User service (DB + API)
- Chat room history
- Use message queue to send message
- Gorilla websocket chat example : https://github.com/gorilla/websocket/tree/master/examples/chat