Some kind of weird interaction with electron's node and wrtc, for my purposes only this library worked https://github.com/murat-dogan/node-datachannel/
https://github.com/murat-dogan/node-datachannel/