You might be interested in Yjs in that case. It's a web library for P2P communication based on web-sockets, where even the initial connection doesn't require a central server. It supports various protocols, for example bittorrent.
It is a promising tech which silently powers a lot of other apps.
Another semi-related technology is Trystero.
Because all of those things run in web, they should be cross-platform.