Nodejs WebSockets to communicate through stdin