   disconnect: ->
     @handleSocketEvent 'disconnect', null
 
-  isConnected: -> @connected
+  isConnected: -> @brackets.length > 0
 
   # ## Sending information packets
   #

  ipToLegacy: (ip) ->
    switch ip.type
      when 'openBracket'
        @braceCount++
        if @braceCount is 1
          return legacy =
            event: 'connect'
            payload: @

        metadata: @metadata

  constructor: (@metadata = {}) ->
    @brackets = []
    @dataDelegate = null
    @debug = false
    @emitEvent = @regularEmitEvent

  # ## Socket connections
  #
