rpc call through socket.io