peerjs mock restore