Socket
Socket
Sign inDemoInstall

get-browser-rtc

Package Overview
Dependencies
0
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-browser-rtc

get webrtc browser methods unprefixed


Version published
Maintainers
2
Weekly downloads
76,452
decreased by-13.8%
Install size
2.65 kB

Weekly downloads

Readme

Source

get-browser-rtc

get webrtc methods unprefixed

This module has the same interface as the wrtc package for easy swapability between node and browsers.

example output

console.log(require('get-browser-rtc')())

If you're in a browser that supports webrtc you'll get:

{ RTCIceCandidate: [Function: RTCIceCandidate],
  RTCPeerConnection: [Function: RTCPeerConnection],
  RTCSessionDescription: [Function: RTCSessionDescription] }

otherwise you'll get

null

install

npm install get-browser-rtc

license

MIT

Keywords

FAQs

Last updated on 18 Nov 2020

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc