golangSocketChat
golangSocketChat copied to clipboard
Golang WebSocket Chat
https://github.com/motyar/golangSocketChat/blob/7afef5bc7b2833cf409df07fbf6ff93e6181c50b/ws.go#L43 If the client disconnects, the app goes to infinite loop printing the above line. The solution is to add `return` after line 43. ```go //Broadcast message to all for...
When a WebClient connecting to Server,The map of ActiveClients have add a element(key=socketClient, value=0). But, when a WebClient closed. The element have not deleted. func WShandler(ws *websocket.Conn) { ...... for...
the chrome 41.0.2272.118 said: WebSocket connection to 'ws://localhost:1212/socket' failed: Error during WebSocket handshake: Unexpected response code: 403