3 ms·
I experimented with implementing this manual signaling where the delay between back and forth could be dozens of seconds or even minutes. I found that you need
by keepamovin 3y ago
I experimented with implementing this manual signaling where the delay between back and forth could be dozens of seconds or even minutes.
I found that you need to call restartIce, which is not typically called in SimplePeer and is not normally exposed.
So as it currently stands, SimplePeer regular version that you can get from the package manager will not support signaling over dozens of minutes. It just won't work.
But it can be made to work if you just call restart ICE, which keeps everything alive.
I discovered this through my own research and experiments.
And you can see the code below. And also, you can fork this repo and read the instructions to get a working version as well.
I think the original idea was basically you can, like, be in your shell and you can run this repo and then you can be chatting with people who come to your GitHub repository. And, the signaling is done over comments and there’s sort of like a comment robot that facilitates that to make it easy.
https://github.com/o0101/janus/ https://github.com/o0101/janus/
RestartIce: https://github.com/o0101/janus/blob/9b092218b7623ca198c3caefb840ba75ae86bc78/local-webrtc-backend/page.html#L284 https://github.com/o0101/janus/blob/9b092218b7623ca198c3caef...