The actorify module turns any duplex stream into an actor.
This example demonstrates how you can associate callbacks with an actor message. That is, you can use actorify for remote method invocation.
actorify
actor.send('get user', name, callback);