read socket directly in page