Creating Chatting Server with Websocket in Go

Photo by Volodymyr Hryshchenko on Unsplash

Library needed

go get github.com/gorilla/websocket

The project structure

Test the Websocket Connection

go run main.go
wscat -c http://127.0.0.1:8080/ws
wscat -c http://127.0.0.1:8080/ws

More improvement

*Molly Ringwald dancing in The Breakfast Club scene

I prefer old-school song and technology, as they are obvious and more understandable.

Get the Medium app