       @emit 'attach', socket, index
       return
     @emit 'attach', socket
+    return
 
-  attachSocket: ->
+  attachSocket: -> return
 
   detach: (socket) ->
     index = @sockets.indexOf socket

        connected = true
    return connected

  canAttach: -> true

module.exports = BasePort

      @emit 'detach', socket, index
      return
    @emit 'detach', socket
    return

  isAddressable: ->
    return true if @options.addressable
    return false

  isBuffered: ->
    return true if @options.buffered
    return false

  isRequired: ->
    return true if @options.required
    return false

  isAttached: (socketId = null) ->
    if @isAddressable() and socketId isnt null
      return true if @sockets[socketId]
      return false
    return true if @sockets.length
    return false

  listAttached: ->
    attached = []
    for socket, idx in @sockets
      continue unless socket
      attached.push idx
    return attached

  isConnected: (socketId = null) ->
    if @isAddressable()
