node-datachannel
Advanced tools
Comparing version 0.0.17 to 0.0.18
cmake_minimum_required(VERSION 3.15) | ||
cmake_policy(SET CMP0091 NEW) | ||
project(node_datachannel VERSION 0.0.17) | ||
project(node_datachannel VERSION 0.0.18) | ||
@@ -5,0 +5,0 @@ include_directories(${CMAKE_JS_INC}) |
@@ -49,2 +49,3 @@ export as namespace NodeDataChannel; | ||
sendMessage: (msg: string) => boolean; | ||
sendMessageBinary: (buffer: Buffer) => boolean; | ||
isOpen: () => boolean; | ||
@@ -60,3 +61,3 @@ availableAmount: () => Number; | ||
onBufferedAmountLow: (cb: () => void) => void; | ||
onMessage: (cb: (msg: string) => void) => void; | ||
onMessage: (cb: (msg: string | Buffer) => void) => void; | ||
} | ||
@@ -63,0 +64,0 @@ |
{ | ||
"name": "node-datachannel", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "libdatachannel node bindings", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -81,2 +81,3 @@ # node-datachannel - libdatachannel node bindings | ||
dc1.sendMessage("Hello from Peer1"); | ||
// Binary message: Use sendMessageBinary(Buffer) | ||
}); | ||
@@ -83,0 +84,0 @@ dc1.onMessage((msg) => { |
@@ -63,2 +63,3 @@ const nodeDataChannel = require('../lib/index'); | ||
dc1.sendMessage("Hello from Peer1"); | ||
// Binary message: Use sendMessageBinary(Buffer) | ||
}); | ||
@@ -65,0 +66,0 @@ dc1.onMessage((msg) => { |
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
1131424
17783
144
25435