socket working