Socket
Book a DemoInstallSign in
Socket

peer-server-vanilla

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

peer-server-vanilla

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

HTTP API

In progress...

The API methods available on YOUR_ROOT_PATH + path option from config.

So, the base path should be like http://127.0.0.1:9000/ or http://127.0.0.1:9000/myapp/ if path option was set to /myapp.

Endpoints:

  • GET / - return a JSON to test the server.

This group of methods uses :key option from config:

  • GET /:key/id - return a new user id. required :key from config.
  • GET /:key/peers - return an array of all connected users. required :key from config. IMPORTANT: You should set allow_discovery to true in config to enable this method. It disabled by default.

This group of methods uses :key option from config, :userId and :userToken parameters from user.

  • POST /:key/:userId/:userToken/offer
  • POST /:key/:userId/:userToken/candidate
  • POST /:key/:userId/:userToken/answer
  • POST /:key/:userId/:userToken/leave

FAQs

Package last updated on 04 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.