Error handling on on-line games

Hi all.

Any good practices for handling error for an online game? Anyone has any experience with PeerJS losing packets due to network issues (unavailable, clogged) and how are you handling it?