I implemented something similar for tic80. Works fine on two browsers on same machine,but it gets uglier the more remote the peers are. My take is that you can’t simply retrofit a game whose engine wasn’t properly architected for RT network play. Good project for learning WebRTC though.