A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
fix: WS are static on creation (#5294)
Dylan Madisetti98a8261d46ae
diff --git a/frontend/src/core/runtime/runtime.ts b/frontend/src/core/runtime/runtime.tsindex f54abbfccb..564df8b9c9 100644--- a/frontend/src/core/runtime/runtime.ts+++ b/frontend/src/core/runtime/runtime.ts@@ -123,7 +123,8 @@ export class RuntimeManager {const response = await fetch(this.healthURL().toString());// If there is a redirect, update the URL in the configif (response.redirected) {- this.config.url = response.url;+ // strip /health from the URL+ this.config.url = response.url.replace(/\/health$/, "");}return response.ok;} catch {diff --git a/frontend/src/core/websocket/useWebSocket.tsx b/frontend/src/core/websocket/useWebSocket.tsxindex 3b10b94e7a..759c844826 100644--- a/frontend/src/core/websocket/useWebSocket.tsx+++ b/frontend/src/core/websocket/useWebSocket.tsx@@ -34,7 +34,7 @@ export function useWebSocket(options: UseWebSocketOptions) {? new PyodideWebsocket(PyodideBridge.INSTANCE): options.static? new StaticWebsocket()- : new ReconnectingWebSocket(rest.url(), undefined, {+ : new ReconnectingWebSocket(rest.url, undefined, {// We don't want Infinity retriesmaxRetries: 10,debug: false,