docs: function fromWebSocketURL(url) {
  
    if (typeof WebSocket != "undefined") {
      return require("./channels/WebSocket").createChannel(url, protocol)
    }
  
    // indirect so that browserify won't package it
    var mod_WebSocketConnection = "./channels/WebSocketConnection"
  
    return require(mod_WebSocketConnection).createChannel(url, protocol)
  }