We have an ongoing open source project
We are building a new chat feature based on WebRTC.
We already successfully built collaborative editing feature based on WebRTC. See below:
If you are interested in it, please contact me.
Reference: WebRTC and the mechanics of peer to peer networking