code: func New(url string) (ws *WebSocket, err error) {
  	defer func() {
  		e := recover()
  		if e == nil {
  			return
  		}
  		if jsErr, ok := e.(*js.Error); ok && jsErr != nil {
  			ws = nil
  			err = jsErr
  		} else {
  			panic(e)
  		}
  	}()
  
  	object := js.Global.Get("WebSocket").New(url)
  
  	ws = &WebSocket{
  		Object: object,
  	}
  
  	return
  }
docs: // New creates a new low-level WebSocket. It immediately returns the new
  // WebSocket.