/signaling-js-sdk

A lightweight and efficient WebRTC signaling library written in TypeScript, using WebSocket and Protocol Buffers to exchange SDP (Session Description Protocol) messages

Primary LanguageTypeScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

WebRTC Signaling Library for JavaScript

License

A lightweight and efficient WebRTC signaling library written in TypeScript, using WebSocket and Protocol Buffers to exchange SDP (Session Description Protocol) messages. Designed for high-performance and seamless WebRTC integration.


Features

  • Compatible with PHP RTC-Signaling
  • WebSocket-based signaling
  • Protocol Buffers for efficient binary message encoding
  • Supports offer/answer SDP exchange
  • Simple TypeScript API
  • BSD 3-Clause License

Installation

npm i rtc-signaling

Usage

import { RTCSignaling } from 'rtc-signaling';

const signaling = new RTCSignaling();

signaling.request(peerConnection.localDescription).then((answer) =>
  peerConnection.setRemoteDescription(answer)
);

Documentation

This package is part of the PHP WebRTC library. For complete documentation, examples, and API reference, visit:

PHP WebRTC Documentation


Credits

Authors


Reporting Issues

Found a bug? Please report it on our issues.


License

BSD 3-Clause License. See LICENSE for details.