- Approach: WebSocket + Goroutine
- Idea: A singleton
Server
and multiple Client
s
- The server creates a instance of the
Client
type for each websocket connection.
- A
Client
acts as an intermediary between the websocket connection and a single instance of the Server
type.