Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

RTCPeerConnection is not defined #70

Closed
rockey2020 opened this issue Apr 26, 2024 · 4 comments
Closed

RTCPeerConnection is not defined #70

rockey2020 opened this issue Apr 26, 2024 · 4 comments

Comments

@rockey2020
Copy link

When I use in node.js 21

const config = { appId: "wo_shi_ce_shi_10086" };
  const room = joinRoom(config, "yoyodyne");

  room.onPeerJoin((peerId) => console.log(`${peerId} joined`));

@jeremyckahn
Copy link
Contributor

This is happening because Trystero uses WebRTC, which is not available in NodeJS (see #24).

@rockey2020
Copy link
Author

https://github.com/murat-dogan/node-datachannel

At present, node-datachannel is stable and can be used in production environments. I wonder if there are any plans to replace it with this one?

@jeremyckahn
Copy link
Contributor

https://github.com/murat-dogan/node-datachannel

At present, node-datachannel is stable and can be used in production environments. I wonder if there are any plans to replace it with this one?

That seems like a great idea. I'll play around with using it as a polyfill when I have some time!

@dmotz
Copy link
Owner

dmotz commented Apr 27, 2024

Let's move this discussion over to #24.

@dmotz dmotz closed this as completed Apr 27, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants