The dashboard controller is using socket call to a sails api called bar which return a json