
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
A basic encapsulation of Native WebRTC, this would offer an easy to use and understand API for beginners out there
A basic encapsulation of Native WebRTC, this would offer an easy to use and understand API for beginners out there
npm install appeerjs
<script type="text/javascript" src="socket.io.js"></script>
<script type="text/javascript" src="appeer.min.js"></script>
You need to start the signaling server with the [appeerjs-server] (https://github.com/TMJPEngineering/appeerjs-server).
After finishing the step three you can now connect to AppeerJS.
var appeer = new Appeer('customId', {
host: 'localhost',
port: '9000',
debug: true // Set to true to show console logs and errors, defaults to false
});
// Triggers when you successfully connects to appeerjs
appeer.on('connection', function (event) {
var appeerId = event.data.id;
console.log('My appeer id is', appeerId);
});
// Triggers when the other peers is calling you
appeer.on('call', function (event) {
var call = event.data.call;
navigator.mediaDevices.getUserMedia(constraints).then(function (stream) {
call.answer(stream); // Answer the call with your stream
});
});
// Triggers when the remote peer answers the call with a stream
appeer.on('stream', function (event) {
var stream = event.detail.stream;
// Do something with the stream
});
// Triggers when a peer connection has been disconnected
appeer.on('close', function (event) {
var appeerId = event.data.id;
console.log('User ', peerId, 'has left the call');
});
// Triggers when connecting to appeer fails
appeer.on('error', function (event) {
var error = event.detail.error;
// Handle error
});
navigator.mediaDevices.getUserMedia(constraints).then(function (stream) {
appeer.call(appeerId, stream);
});
var roomId = '1234';
appeer.join(roomId);
navigator.mediaDevices.getUserMedia(constraints).then(function (stream) {
appeer.call(roomId, stream);
});
var id = '123'; // Either appeer id or room id
apppeer.close(id);
Currently WebRTC is not supported in all browsers.
Please see [supported browser versions] (http://caniuse.com/#feat=rtcpeerconnection) for more information on the official support specification.
This project is licensed under the MIT License - see the [LICENSE] (https://github.com/TMJPEngineering/appeerjs/blob/master/LICENSE) file for details
FAQs
A basic encapsulation of Native WebRTC, this would offer an easy to use and understand API for beginners out there
We found that appeerjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.