I believe that this question is almost the same with this.
But I use websocket in Echo framework instead of Gorilla. So I think the approach will be different.
Echo does provide the example. But it only shows how to connect with single client. When there are more than one client, the other clients don't receive message from server.
How do I make the server broadcasts message to all connected clients?
The accepted answer from referred link says that I have to use connection pool to broadcast messages to all connections. How can I do this in Echo framework?