func (s *Socket) closeWebSocket() {
	s.webSocket.Set("onopen", nil)
	s.webSocket.Set("onclose", nil)
	s.webSocket.Set("onerror", nil)
	s.webSocket.Set("onmessage", nil)
	s.releaseWebSocketJsFuncs()
	s.dom.SetChecked("#has-websocket", false)
	s.dom.SetChecked("#hide-game", true)
	s.dom.SetChecked("#tab-lobby", true)
}
// closeWebSocket releases the event listeners and does some dom cleanup.
closeWebSocket releases the event listeners and does some dom cleanup.
// closeWebSocket releases the event listeners and does some dom cleanup .
func (s *Socket) closeWebSocket() {
	s.webSocket.Set("onopen", nil)
	s.webSocket.Set("onclose", nil)
	s.webSocket.Set("onerror", nil)
	s.webSocket.Set("onmessage", nil)
	s.releaseWebSocketJsFuncs()
	s.dom.SetChecked("#has-websocket", false)
	s.dom.SetChecked("#hide-game", true)
	s.dom.SetChecked("#tab-lobby", true)
}
func ( s * Socket ) closeWebSocket ( ) { s . webSocket . Set ( " " , nil ) s . webSocket . Set ( " " , nil ) s . webSocket . Set ( " " , nil ) s . webSocket . Set ( " " , nil ) s . releaseWebSocketJsFuncs ( ) s . dom . SetChecked ( " " , false ) s . dom . SetChecked ( " " , true ) s . dom . SetChecked ( " " , true ) }
closeWebSocket releases the event listeners and does some dom cleanup.
closeWebSocket releases the event listeners and does some dom cleanup .