@ruvector/edge-net 0.4.4 → 0.4.5
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/package.json +1 -1
- package/webrtc.js +15 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ruvector/edge-net",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Distributed compute intelligence network with WASM cryptographic security - contribute browser compute, spawn distributed AI agents, earn credits. Features Ed25519 signing, PiKey identity, Time Crystal coordination, Neural DAG attention, P2P swarm intelligence, ONNX inference, WebRTC signaling, CRDT ledger, and multi-agent workflows.",
|
|
6
6
|
"main": "ruvector_edge_net.js",
|
package/webrtc.js
CHANGED
|
@@ -53,12 +53,11 @@ function getStunServers() {
|
|
|
53
53
|
}
|
|
54
54
|
// Default STUN servers (free, reliable)
|
|
55
55
|
return [
|
|
56
|
+
{ urls: 'stun:34.72.154.225:3478' }, // Edge-Net self-hosted (primary)
|
|
56
57
|
{ urls: 'stun:stun.l.google.com:19302' },
|
|
57
58
|
{ urls: 'stun:stun1.l.google.com:19302' },
|
|
58
|
-
{ urls: 'stun:stun2.l.google.com:19302' },
|
|
59
59
|
{ urls: 'stun:stun.cloudflare.com:3478' },
|
|
60
60
|
{ urls: 'stun:stun.services.mozilla.com:3478' },
|
|
61
|
-
{ urls: 'stun:stun.stunprotocol.org:3478' },
|
|
62
61
|
];
|
|
63
62
|
}
|
|
64
63
|
|
|
@@ -91,17 +90,23 @@ function getTurnServers() {
|
|
|
91
90
|
}
|
|
92
91
|
}
|
|
93
92
|
|
|
94
|
-
// Add default
|
|
93
|
+
// Add default TURN servers if no custom ones
|
|
95
94
|
if (servers.length === 0) {
|
|
96
95
|
servers.push(
|
|
97
|
-
//
|
|
96
|
+
// Edge-Net self-hosted TURN (primary, unlimited bandwidth)
|
|
98
97
|
{
|
|
99
|
-
urls: 'turn:
|
|
100
|
-
username: '
|
|
101
|
-
credential: '
|
|
98
|
+
urls: 'turn:34.72.154.225:3478',
|
|
99
|
+
username: 'edgenet',
|
|
100
|
+
credential: 'ruvector2024turn',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
urls: 'turn:34.72.154.225:3478?transport=tcp',
|
|
104
|
+
username: 'edgenet',
|
|
105
|
+
credential: 'ruvector2024turn',
|
|
102
106
|
},
|
|
107
|
+
// Fallback: Metered.ca free tier (limited bandwidth)
|
|
103
108
|
{
|
|
104
|
-
urls: 'turn:openrelay.metered.ca:
|
|
109
|
+
urls: 'turn:openrelay.metered.ca:80',
|
|
105
110
|
username: 'openrelayproject',
|
|
106
111
|
credential: 'openrelayproject',
|
|
107
112
|
},
|
|
@@ -109,12 +114,6 @@ function getTurnServers() {
|
|
|
109
114
|
urls: 'turn:openrelay.metered.ca:443?transport=tcp',
|
|
110
115
|
username: 'openrelayproject',
|
|
111
116
|
credential: 'openrelayproject',
|
|
112
|
-
},
|
|
113
|
-
// Alternative relay
|
|
114
|
-
{
|
|
115
|
-
urls: 'turn:relay.metered.ca:80',
|
|
116
|
-
username: 'e8a437a4c4d4e5f6a7b8c9d0',
|
|
117
|
-
credential: 'freePublicTurnServer',
|
|
118
117
|
}
|
|
119
118
|
);
|
|
120
119
|
}
|
|
@@ -131,9 +130,9 @@ function getSignalingServers() {
|
|
|
131
130
|
return envSignaling.split(',').map(url => url.trim());
|
|
132
131
|
}
|
|
133
132
|
return [
|
|
134
|
-
'
|
|
133
|
+
'wss://edge-net-genesis-875130704813.us-central1.run.app', // Cloud Run Genesis (production)
|
|
134
|
+
'ws://localhost:8787', // Local signaling server
|
|
135
135
|
'ws://127.0.0.1:8787', // Local alternative
|
|
136
|
-
'wss://edge-net-signal.ruvector.dev', // Production (when deployed)
|
|
137
136
|
];
|
|
138
137
|
}
|
|
139
138
|
|