http call vs socket call