Adding the possibility to listen when a PeerConnection is closed (aka
TCP connection is not active anymore)
Refactoring and modularized the replication to a separate package