当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
4 Star 3 Fork 2

PearX/WebRTC_Datachannel_Demo
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

webrtc_dataChannelDemo

A simple demo by using webrtc Datachannel. Basically transmit message using datachannel of webrtc between two browser pages. Signaling using the socket.io lib.

How to use

  1. To run the Server, you need install Node.js and socket.io.

  2. Use your Terminal or CMD to run the 'server.js' and 'signaling.js' with node command.

    forexample:

    node server.js

  3. Modify the host variable in 'index.html' with your server address. If needed, u can change the port variable also, but remember to change it in 'server.js' as well.

        var host= '192.168.31.180';
        var port = 3000;
        var socket = io.connect('http://'+host+':'+ port+ '/');
    
  4. Now, u can try this simple demo by opening two browser pages, or add more funct as u like.

空文件

简介

实现跨网页间点对点通过Datachannel传输信息功能。 展开 收起
JavaScript
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/pearx/WebRTC_Datachannel_Demo.git
git@gitee.com:pearx/WebRTC_Datachannel_Demo.git
pearx
WebRTC_Datachannel_Demo
WebRTC_Datachannel_Demo
master

搜索帮助