 
     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

    if @handle
      @handle ip, @nodeInstance

    @emit 'ip', ip, id


  attachSocket: (socket, localId = null) ->
    # have a default value.
    if @hasDefault()
      socket.setDataDelegate => @options.default

    socket.on 'connect', =>
      @handleSocketEvent 'connect', socket, localId
