retrieves all stored documents on socket connect