     @connected = true if event is 'connect'
     @connected = false if event is 'disconnect'
     @emitEvent event, payload
+    return
 
 exports.InternalSocket = InternalSocket
 

class InternalSocket extends EventEmitter
  regularEmitEvent: (event, data) ->
    @emit event, data

  debugEmitEvent: (event, data) ->
    try

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

  # ## Socket debug mode
  #
