Creating Chatting Server with Websocket in Go

Photo by Volodymyr Hryshchenko on Unsplash

Dive deeper into Go web socket and concurrency programming

Chatting app can be done in various way (theoretically). Like using simple long-polling request that provide half-duplex (one-way communication) or using protocol that provide full-duplex (2 way) communication like TCP Socket. But, website cannot directly connect to TCP, fortunately, there is a wrapper to TCP called Websocket.