vibex-sh 0.9.0 → 0.9.1
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/index.js +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -66,7 +66,7 @@ function deriveSocketUrl(webUrl) {
|
|
|
66
66
|
// For vibex.sh domains, use Workers WebSocket endpoint
|
|
67
67
|
else if (url.hostname.includes('vibex.sh')) {
|
|
68
68
|
// Use Cloudflare Workers WebSocket endpoint
|
|
69
|
-
const workerUrl = process.env.VIBEX_WORKER_URL || 'https://vibex-ingest.
|
|
69
|
+
const workerUrl = process.env.VIBEX_WORKER_URL || 'https://vibex-ingest.prop.workers.dev';
|
|
70
70
|
return workerUrl.replace('https://', 'wss://').replace('http://', 'ws://');
|
|
71
71
|
}
|
|
72
72
|
// For other domains, derive from web URL
|
|
@@ -112,9 +112,11 @@ function getUrls(options) {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
// Priority 5: Production defaults
|
|
115
|
+
// Use Worker WebSocket endpoint instead of old Socket.io server
|
|
116
|
+
const defaultWorkerUrl = process.env.VIBEX_WORKER_URL || 'https://vibex-ingest.prop.workers.dev';
|
|
115
117
|
return {
|
|
116
118
|
webUrl: 'https://vibex.sh',
|
|
117
|
-
socketUrl: socket || 'https://
|
|
119
|
+
socketUrl: socket || defaultWorkerUrl.replace('https://', 'wss://').replace('http://', 'ws://'),
|
|
118
120
|
};
|
|
119
121
|
}
|
|
120
122
|
|