Code Monkey home page Code Monkey logo

suji-webrtcdemo's Introduction

webRtcDemo

This is a simple example of a chat service using Websockets.
I use jetty for serving static files over http and Netty to handle webRTC communication.

This example is based on the khs-stockticker:

https://keyholesoftware.com/2015/03/16/netty-a-different-kind-of-websocket-server/
https://github.com/jwboardman/khs-stockticker

Technologies Used:

Jetty for the Http server
Netty for the WebSocket server
GSON for JSON data
Maven for the build tool

Instruction:

  1. Open a console and execute 'mvn jetty:run' to start the http server on the port 9080

  2. In a new console, execute 'mvn test' to compile and run the Netty websocket server on the port 9090

  3. Open a web browser and go to the url http://localhost:9080

Note: Jetty and Netty should be run on the same server because the websocket url is build using Jetty's hostname. This is hardcoded in the client javascript (webRtcDemo.js).
In the same way, the port of the Netty server should also be 9090 because it is also hardcoded in the client javascript (webRtcDemo.js).

Tested with:
Maven 3.3.9
Java 1.8
Firefox 47
IExplore 11
Microsoft Edge (25)

suji-webrtcdemo's People

Stargazers

ChangTai LIANG avatar rayfeng avatar

Watchers

 avatar

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.