             onUpdateState: (args...) -> console.log args
           }
 
-          # Parse the URL.
-          url = parseUrl url
-
           path = url.path
           # Leading '/' is added by noVNC.
           if path[0] is '/'

          # If the URL is empty, nothing to do.
          return unless url

          # Creates the new RFB object.
          rfb = new $window.RFB {
            # Options.
            encrypt: false
            # local_cursor: true
            target: $element[0]
            wsProtocols: ['chat']

          # Connects.
          rfb.connect(
            url.hostname
            url.port || (if isSecure then 443 else 80)
            '' # TODO: comment.
            path
          )
