     return if @connected
     @connected = true
     @emitEvent 'connect', null
+    return
 
   disconnect: ->
     return unless @connected
     @connected = false
     @emitEvent 'disconnect', null
+    return
 
   isConnected: -> @connected
 

    unless typeof delegate is 'function'
      throw Error 'A data delegate must be a function.'
    @dataDelegate = delegate

  # ## Socket debug mode
  #

  setDebug: (active) ->
    @debug = active
    @emitEvent = if @debug then @debugEmitEvent else @regularEmitEvent
    return

  # ## Socket identifiers
  #
