# WebRTC_Datachannel_Demo **Repository Path**: pearx/WebRTC_Datachannel_Demo ## Basic Information - **Project Name**: WebRTC_Datachannel_Demo - **Description**: 实现跨网页间点对点通过Datachannel传输信息功能。 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 2 - **Created**: 2016-10-09 - **Last Updated**: 2022-03-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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](https://nodejs.org/en/) and [socket.io](https://github.com/socketio/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. ``` js 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.