Working on the APISocket