   attachSocket: (socket, localId = null) ->
     # have a default value.
     if @hasDefault()
-      if @handle
-        socket.setDataDelegate => new IP 'data', @options.default
-      else
-        socket.setDataDelegate => @options.default
+      socket.setDataDelegate => @options.default
 
     socket.on 'connect', =>
       @handleSocketEvent 'connect', socket, localId


    if options.handle
      platform.deprecated 'InPort handle callback is deprecated. Please use Process API'
      unless typeof options.handle is 'function'
        throw new Error 'handle must be a function'
      @handle = options.handle
      delete options.handle

    super options

    buf = @prepareBufferForIP ip
    buf.push ip
    buf.shift() if @options.control and buf.length > 1

    @emit 'ip', ip, id

