turn a node stream into an emitter on both ends like socket.io