node-datachannel
Advanced tools
Comparing version 0.2.1 to 0.2.2
cmake_minimum_required(VERSION 3.15) | ||
cmake_policy(SET CMP0091 NEW) | ||
project(node_datachannel VERSION 0.2.1) | ||
project(node_datachannel VERSION 0.2.2) | ||
@@ -5,0 +5,0 @@ include_directories(${CMAKE_JS_INC}) |
@@ -137,3 +137,3 @@ export as namespace NodeDataChannel; | ||
addVP9Codec: (payloadType: Number) => void; | ||
direction: () => Direction; | ||
@@ -209,5 +209,9 @@ generateSdp: (eol: string, addr: string, port: string) => string; | ||
hasMedia: () => boolean; | ||
state: () => string; | ||
signalingState: () => string; | ||
gatheringState: () => string; | ||
onLocalDescription: (cb: (sdp: string, type: DescriptionType) => void) => void; | ||
onLocalCandidate: (cb: (candidate: string, mid: string) => void) => void; | ||
onStateChange: (cb: (state: string) => void) => void; | ||
onSignalingStateChange: (state: (sdp: string) => void) => void; | ||
onGatheringStateChange: (state: (sdp: string) => void) => void; | ||
@@ -214,0 +218,0 @@ onDataChannel: (cb: (dc: DataChannel) => void) => void; |
{ | ||
"name": "node-datachannel", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "libdatachannel node bindings", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -136,3 +136,3 @@ # Easy to use WebRTC data channels and media transport | ||
``` | ||
``` | ||
@@ -183,4 +183,15 @@ **close: () => void** | ||
} | ||
``` | ||
``` | ||
**state: () => string** | ||
Get current state | ||
**signalingState: () => string** | ||
Get current signaling state | ||
**gatheringState: () => string** | ||
Get current gathering state | ||
**onLocalDescription: (cb: (sdp: string, type: DescriptionType) => void) => void** | ||
@@ -205,2 +216,6 @@ | ||
**onSignalingStateChange: (state: (sdp: string) => void) => void** | ||
Signaling State Change Callback | ||
**onGatheringStateChange: (state: (sdp: string) => void) => void** | ||
@@ -244,3 +259,3 @@ | ||
Close data channel | ||
Close data channel | ||
@@ -247,0 +262,0 @@ **getLabel: () => string** |
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
1238847
18367
341