@blinkdotnew/sdk 0.10.4 → 0.10.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/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2620,7 +2620,7 @@ var BlinkRealtimeChannel = class {
|
|
|
2620
2620
|
try {
|
|
2621
2621
|
const httpClient = this.httpClient;
|
|
2622
2622
|
const coreUrl = httpClient.coreUrl || "https://core.blink.new";
|
|
2623
|
-
const baseUrl = coreUrl.
|
|
2623
|
+
const baseUrl = coreUrl.replace("https://", "wss://").replace("http://", "ws://");
|
|
2624
2624
|
const wsUrl = `${baseUrl}?project_id=${this.projectId}`;
|
|
2625
2625
|
const WSClass = getWebSocketClass();
|
|
2626
2626
|
this.websocket = new WSClass(wsUrl);
|
package/dist/index.mjs
CHANGED
|
@@ -2618,7 +2618,7 @@ var BlinkRealtimeChannel = class {
|
|
|
2618
2618
|
try {
|
|
2619
2619
|
const httpClient = this.httpClient;
|
|
2620
2620
|
const coreUrl = httpClient.coreUrl || "https://core.blink.new";
|
|
2621
|
-
const baseUrl = coreUrl.
|
|
2621
|
+
const baseUrl = coreUrl.replace("https://", "wss://").replace("http://", "ws://");
|
|
2622
2622
|
const wsUrl = `${baseUrl}?project_id=${this.projectId}`;
|
|
2623
2623
|
const WSClass = getWebSocketClass();
|
|
2624
2624
|
this.websocket = new WSClass(wsUrl);
|
package/package.json
CHANGED