Fetching information from SErver using socket.io and triejs