func (s *Socket) onOpen(errC chan<- error) func() {
	return func() {
		s.dom.SetChecked("#has-websocket", true)
		errC <- nil
	}
}
// onMessage is called when the websocket opens.
onMessage is called when the websocket opens.
// onMessage is called when the websocket opens .
func (s *Socket) onOpen(errC chan<- error) func() {
	return func() {
		s.dom.SetChecked("#has-websocket", true)
		errC <- nil
	}
}
func ( s * Socket ) onOpen ( errC chan <- error ) func ( ) { return func ( ) { s . dom . SetChecked ( " " , true ) errC <- nil } }
onMessage is called when the websocket opens.
onMessage is called when the websocket opens .