   IConnection
   (connect
     ([this url]
-       (connect this url nil))
+     (connect this url nil))
     ([this url protocol]
-       (.open this url protocol)))
+     (.open this url protocol)))
 
   (transmit [this message]
     (.send this message))

  clojure.browser.net
  (:require [clojure.browser.event :as event]
            [goog.json :as gjson])
  (:import (goog.net XhrIo EventType)
           (goog.net.xpc CfgFields CrossPageChannel)
           goog.Uri))

(def *timeout* 10000)


;; WebSocket is not supported in the 3/23/11 release of Google
;; Closure, but will be included in the next release.

(defprotocol IWebSocket
  (open? [this]))

(extend-type WebSocket
  IWebSocket
  (open? [this]
    (.isOpen this ()))
