finished ajax, start socket