diff --git a/examples/twilio-chatbot/ws_test_client/src/app.ts b/examples/twilio-chatbot/ws_test_client/src/app.ts index da1dccd7b..e52c6ebe3 100644 --- a/examples/twilio-chatbot/ws_test_client/src/app.ts +++ b/examples/twilio-chatbot/ws_test_client/src/app.ts @@ -187,7 +187,7 @@ class WebsocketClientApp { // @ts-ignore RTVIConfig.customConnectHandler = () => Promise.resolve( { - ws_url: "http://localhost:8765/ws", + ws_url: "/ws", } ); this.rtviClient = new RTVIClient(RTVIConfig); diff --git a/examples/twilio-chatbot/ws_test_client/vite.config.js b/examples/twilio-chatbot/ws_test_client/vite.config.js index 6b3428c5d..6bcaa3bc8 100644 --- a/examples/twilio-chatbot/ws_test_client/vite.config.js +++ b/examples/twilio-chatbot/ws_test_client/vite.config.js @@ -6,9 +6,8 @@ export default defineConfig({ plugins: [react()], server: { proxy: { - // Proxy /api requests to the backend server '/ws': { - target: 'http://0.0.0.0:8765', // Replace with your backend URL + target: 'ws://0.0.0.0:8765', // Replace with your backend URL changeOrigin: true, }, },