node-rtc-connection 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# node-rtc-connection - WebRTC DataChannels for Node.js
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/node-rtc-connection)
|
|
4
4
|
[](https://github.com/nmhung1210/nodertc/actions)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ A production-ready WebRTC DataChannel implementation for Node.js with **real net
|
|
|
8
8
|
|
|
9
9
|
## Overview
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
node-rtc-connection provides WebRTC-style peer-to-peer data connections using Node.js built-in modules. It supports NAT traversal via STUN/TURN servers with full RFC 5766 MESSAGE-INTEGRITY authentication, optional TLS encryption, and works across the internet for most network configurations.
|
|
12
12
|
|
|
13
13
|
## Features
|
|
14
14
|
|
|
@@ -28,7 +28,7 @@ NodeRTC provides WebRTC-style peer-to-peer data connections using Node.js built-
|
|
|
28
28
|
## Installation
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
|
-
npm install
|
|
31
|
+
npm install node-rtc-connection
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
## Quick Start
|
|
@@ -36,7 +36,7 @@ npm install nodertc
|
|
|
36
36
|
### Basic Usage
|
|
37
37
|
|
|
38
38
|
```javascript
|
|
39
|
-
const { createPeerConnection } = require('
|
|
39
|
+
const { createPeerConnection } = require('node-rtc-connection');
|
|
40
40
|
|
|
41
41
|
// Create peer connection
|
|
42
42
|
const pc = createPeerConnection();
|
|
@@ -68,7 +68,7 @@ await pc.setLocalDescription(offer);
|
|
|
68
68
|
### With STUN and TURN (Recommended)
|
|
69
69
|
|
|
70
70
|
```javascript
|
|
71
|
-
const { createPeerConnection } = require('
|
|
71
|
+
const { createPeerConnection } = require('node-rtc-connection');
|
|
72
72
|
|
|
73
73
|
// Configuration with STUN and TURN
|
|
74
74
|
const config = {
|
|
@@ -295,7 +295,7 @@ new RTCPeerConnection(configuration, nativePeerConnectionFactory)
|
|
|
295
295
|
|
|
296
296
|
## Testing
|
|
297
297
|
|
|
298
|
-
|
|
298
|
+
node-rtc-connection includes comprehensive unit tests covering all components:
|
|
299
299
|
|
|
300
300
|
```bash
|
|
301
301
|
# Run all unit tests (fast, ~500ms)
|
|
@@ -421,7 +421,7 @@ Ported from Chromium's WebRTC implementation:
|
|
|
421
421
|
|
|
422
422
|
## Links
|
|
423
423
|
|
|
424
|
-
- [NPM Package](https://www.npmjs.com/package/
|
|
424
|
+
- [NPM Package](https://www.npmjs.com/package/node-rtc-connection)
|
|
425
425
|
- [GitHub Repository](https://github.com/nmhung1210/nodertc)
|
|
426
426
|
- [Issues](https://github.com/nmhung1210/nodertc/issues)
|
|
427
427
|
- [Contributing Guide](CONTRIBUTING.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-rtc-connection",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "WebRTC DataChannel implementation for Node.js with STUN, TURN, NAT traversal, and encryption. Pure Node.js, no native dependencies.",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|