Giter VIP home page Giter VIP logo

webrtc-server-client-demo's Introduction

WebRTC WebSocket Server and Html Client Demo

一个完整的WebRTC Demo,包含了websocket websocket server和浏览器代码,使用方法:

A complete WebRTC Demo, including a websocket server and browser side code. Usage:

npm insall
npm install -g http-server
# 启动http服务,默认8080端口
http-server
# 启动node.js服务
node server.js

开两个标签页,访问localhost:8080(根据http-server的端口号,注意需要使用localhost域名,因为webrtc只能运行在localhost或者https环境),这个时候在线用户就会显示一个,然后在一个标签页呼叫一下,另外一个标签页就能收到呼叫请求,点击同意即可。

Open two browser tab, both visit localhost:8080 (based on your http-server, you should run in localhost or https domain due to webrtc requirement),call the user showing on the online user list in one tab and press agree button in another tab.

webrtc-server-client-demo's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.