dignity.js 0.1.2 → 0.2.0
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 +13 -0
- package/dist/dignity.cjs.js +6835 -37
- package/dist/dignity.cjs.js.map +4 -4
- package/dist/dignity.esm.js +6849 -37
- package/dist/dignity.esm.js.map +4 -4
- package/dist/dignity.min.js +42 -1
- package/package.json +3 -1
- package/src/index.js +2 -0
- package/src/security/message-security-service.js +16 -4
- package/src/signaling/create-default-signaling-pool.js +5 -1
- package/src/signaling/default-signaling-config.js +2 -3
- package/src/signaling/peerjs-signaling-provider.js +210 -0
- package/src/signaling/websocket-signaling-provider.js +24 -1
package/README.md
CHANGED
|
@@ -163,6 +163,19 @@ Example with CDN:
|
|
|
163
163
|
</script>
|
|
164
164
|
```
|
|
165
165
|
|
|
166
|
+
## Signaling Servers
|
|
167
|
+
|
|
168
|
+
Default signaling URLs include PeerJS-compatible public endpoints:
|
|
169
|
+
|
|
170
|
+
- `wss://peerjs.92k.de/peerjs?key=peerjs`
|
|
171
|
+
- `wss://0.peerjs.com/peerjs?key=peerjs`
|
|
172
|
+
|
|
173
|
+
You can also deploy your own server with [peerjs-server](https://github.com/peers/peerjs-server) and point `createDefaultSignalingPool` (or `WebSocketSignalingProvider`) to your own `wss://.../peerjs?key=...` URL.
|
|
174
|
+
|
|
175
|
+
Compatibility note:
|
|
176
|
+
- `dignity.js` now includes a dedicated `PeerJSSignalingProvider` backed by the official `peerjs` client for PeerJS protocol compatibility.
|
|
177
|
+
- In non-WebRTC runtimes (for example Node test runners), it automatically falls back to WebSocket transport checks for connectivity testing.
|
|
178
|
+
|
|
166
179
|
## Development
|
|
167
180
|
|
|
168
181
|
```bash
|