WebRTC Data Channel server to clients UDP communication

后端 未结 2 1594
被撕碎了的回忆
被撕碎了的回忆 2021-01-04 07:20

Is it possible to use WebRTC Data Channels on Node.js in a way that mimics the functionality (and preferably API) of Socket.io (WebSockets) except using UDP?

In esse

2条回答
  •  生来不讨喜
    2021-01-04 07:30

    There is a WebRTC module for node.js: https://js-platform.github.io/node-webrtc/

    The installation can be really cumbersome (to say the least) but if you succeed you'll be able to make your node.js server act as a WebRTC peer just as browsers do. This way you'd be able to open a Data Channel between a browser and your node.js server.

    We have this in use in our research project to evaluate performance characteristics.

提交回复
热议问题