Giter VIP home page Giter VIP logo

peerrtc-server's Introduction

PeerRTC-Server ๐Ÿ’ป

Backend server for the PeerRTC module. This server is used as the signaling server for clients coming from the PeerRTC clients. This server can also be used as a temporary storage for client related data and payloads.

โ— Note

  • Add credits and attribution to this website when using the backend server.
  • This module is still in beta phase and can be unstable.
  • Source code contributions and bug reports are encouraged.

โš™๏ธ Setup

  1. Install Node.js first. Skip this step if already installed.
  2. Clone this repository.
  3. In command line, navigate to root directory of the newly downloaded repository.
  4. Install all needed dependencies via npm install in the command line.
  5. Start the server by entering npm start in the command line.

๐Ÿ”ง Modifying configurations

Server configurations can be modified in the server/config.json as found here.


host : string

  • A string host address to be used by the server.

port : number

  • The port number the server will be using.

isClientIdsPublic : boolean

  • Whether all client ids are retrievable by all of the connected peer. Public payloads can also be retrieved if this flag is set to true. Admin related methods however are exempted by this flag because it caan retrieve all client's data.

clientMaxUnreachableTime : number

  • The maximum time in milliseconds a client is unreachable by the backend server through ping before disconnecting it. Setting this flag to negative number means unlimited maximum unreachable time.

clientMaxConnectionTime : number

  • The maximum time in milliseconds a client can remain connected in a server before disconnecting it. Setting this flag to negative number means unlimited maximum connection time.

allowPayloadStoring : boolean

  • Whether to allow storing both public and private payloads from clients. Set this to false if there is no plan of storing payloads to prevent unauthorized data storage.

displayErrors : boolean

  • Whether to display error messages when errors occur in command line.

verificationHash : string

  • The sha256 hash of the key that are used in admin related api in PeerRTC client. Setting this flag to empty string means that admin related task are disabled.

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.