Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-datachannel

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-datachannel - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

CMakeLists.txt
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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc