Exclude the id method of Socket class