Git Product home page Git Product logo

black-door-chat-service's Introduction

Black Door Chat - Service

Where this project coming from? Black Door Chat Project Introduction.

Project

I have just implemented the minimum necessary interfaces for committing the controller's requirements - MVC.
This ChatService hides the complexity under webrtc-adapter/out/adapter.js implementations. Also the signialling process, the offer and answer negotiation among others.
I personally believe those 265 lines of code could be reduced. As an example, I could move the signaling process into an other class.
However, I have decided to keep it as a single class for my own convenience.

Commands

  1. Install dependencies yarn install
  2. Regenerate the distribution package (dist directory ) yarn build
  3. Run minimal testing yarn start and navigate to lib/test/index

Testing

Particularly in this project I have included a minimal testing (lib/test/index.ts) which runs when you execute yarn start command. It is because the implementation of adapter.js requires a live browser.

Just run yarn start, navigate to lib/test/index and open the console to see more details.

lib/test/index.ts will give you an idea about the use of this ChatService class. In fact, this test emulates a simple conversation between 2 peers sending a simple message.

black-door-chat-service's People

Contributors

cristianmercado19 avatar

Watchers

 avatar  avatar  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.