node-datachannel
Advanced tools
Comparing version 0.9.2 to 0.10.0
37
API.md
# API | ||
## PeerConnection Class | ||
## PeerConnection Class | ||
@@ -8,4 +8,6 @@ **Constructor** | ||
let pc = new PeerConnection(peerName[,options]) | ||
- peerName `<string>` Peer name to use for logs etc.. | ||
- options `<Object>` WebRTC Config Options | ||
- peerName `<string>` Peer name to use for logs etc.. | ||
- options `<Object>` WebRTC Config Options | ||
``` | ||
@@ -61,2 +63,3 @@ export interface RtcConfig { | ||
Set Remote Description | ||
``` | ||
@@ -77,4 +80,6 @@ export const enum DescriptionType { | ||
Create new data-channel | ||
* label `<string>` Data channel name | ||
* config `<Object>` Data channel options | ||
- label `<string>` Data channel name | ||
- config `<Object>` Data channel options | ||
``` | ||
@@ -85,18 +90,8 @@ export interface DataChannelInitConfig { | ||
id?: number; | ||
ordered?: boolean; | ||
maxPacketLifeTime?: number; | ||
maxRetransmits?: number; | ||
// Deprecated, use ordered, maxPacketLifeTime, and maxRetransmits | ||
reliability?: { | ||
type?: ReliabilityType; | ||
unordered?: boolean; | ||
rexmit?: number; | ||
} | ||
unordered?: boolean; // Reliability | ||
maxPacketLifeTime?: number; // Reliability | ||
maxRetransmits?: number; // Reliability | ||
} | ||
``` | ||
export const enum ReliabilityType { | ||
Reliable = 0, Rexmit = 1, Timed = 2 | ||
} | ||
``` | ||
**state: () => string** | ||
@@ -117,2 +112,3 @@ | ||
Local Description Callback | ||
``` | ||
@@ -161,2 +157,3 @@ export const enum DescriptionType { | ||
Get info about selected candidate pair | ||
``` | ||
@@ -171,3 +168,3 @@ export interface SelectedCandidateInfo { | ||
## DataChannel Class | ||
## DataChannel Class | ||
@@ -174,0 +171,0 @@ > You can create a new Datachannel instance by calling `PeerConnection.createDataChannel` function. |
@@ -5,3 +5,3 @@ cmake_minimum_required(VERSION 3.15) | ||
project(node_datachannel VERSION 0.9.2) | ||
project(node_datachannel VERSION 0.10.0) | ||
@@ -8,0 +8,0 @@ # -Dnapi_build_version=8 |
@@ -142,5 +142,5 @@ { | ||
"node_modules/ws": { | ||
"version": "7.5.9", | ||
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", | ||
"integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", | ||
"version": "7.5.10", | ||
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", | ||
"integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", | ||
"engines": { | ||
@@ -287,5 +287,5 @@ "node": ">=8.3.0" | ||
"ws": { | ||
"version": "7.5.9", | ||
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", | ||
"integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", | ||
"version": "7.5.10", | ||
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", | ||
"integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", | ||
"requires": {} | ||
@@ -292,0 +292,0 @@ }, |
@@ -74,8 +74,2 @@ import * as stream from 'stream'; | ||
export const enum ReliabilityType { | ||
Reliable = 0, | ||
Rexmit = 1, | ||
Timed = 2, | ||
} | ||
export interface DataChannelInitConfig { | ||
@@ -85,12 +79,5 @@ protocol?: string; | ||
id?: number; | ||
ordered?: boolean; | ||
maxPacketLifeTime?: number; | ||
maxRetransmits?: number; | ||
// Deprecated, use ordered, maxPacketLifeTime, and maxRetransmits | ||
reliability?: { | ||
type?: ReliabilityType; | ||
unordered?: boolean; | ||
rexmit?: number; | ||
}; | ||
unordered?: boolean; // Reliability | ||
maxPacketLifeTime?: number; // Reliability | ||
maxRetransmits?: number; // Reliability | ||
} | ||
@@ -118,4 +105,3 @@ | ||
export class RtcpReceivingSession { | ||
requestBitrate(bitRate: number): void; | ||
requestKeyframe(): boolean; | ||
// | ||
} | ||
@@ -122,0 +108,0 @@ |
{ | ||
"name": "node-datachannel", | ||
"version": "0.9.2", | ||
"version": "0.10.0", | ||
"description": "libdatachannel node bindings", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -25,11 +25,7 @@ # Easy to use WebRTC data channels and media transport | ||
| | Linux-x64 | Linux-armv7 | Linux-arm64(1) | Windows-x86 | Windows-x64 | Mac (M1 + x64) | | ||
| -------- | :-------: | :---------: | :------------: | :---------: | :---------: | :------------: | | ||
| Node V16 | + | + | + | + | + | + | | ||
| Node V17 | + | + | + | + | + | + | | ||
| Node V18 | + | + | + | + | + | + | | ||
| Node V19 | + | + | + | + | + | + | | ||
| Node V20 | + | + | + | + | + | + | | ||
| | Linux [x64,armv7,arm64] (1) | Windows [x86,x64] | Mac [M1,x64] | | ||
| ----------------------- | :-------------------------: | :---------------: | :----------: | | ||
| NAPI V8 (>= NodeJS V16) | + | + | + | | ||
1. Please note that; For Linux-arm64 platform we need OpenSSL to be installed locally. | ||
**(1)** For Linux musl + libc | ||
@@ -36,0 +32,0 @@ ## Electron |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
109
1093472
20423
125