Answer the question
In order to leave comments, you need to log in
How to use WebSocket?
Good afternoon. I know that it is necessary to make a pool of connections var clients map[string]*websocket.Conn
and then send messages to everyone in a loop like this
for _, v := range clients {
websocket.JSON.Send(v, message)
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question