Skip to content

Commit

Permalink
wss
Browse files Browse the repository at this point in the history
  • Loading branch information
cipher982 committed May 13, 2024
1 parent ba17c07 commit 62d77d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const App = () => {
setSimulationComplete(false);

const backendUrl = new URL(process.env.REACT_APP_BACKEND_URL);
const websocketBaseUrl = `ws://${backendUrl.hostname}${backendUrl.port ? `:${backendUrl.port}` : ''}/ws/simulate`;
const websocketBaseUrl = `wss://${backendUrl.hostname}${backendUrl.port ? `:${backendUrl.port}` : ''}/ws/simulate`;
console.log(`websocketBaseUrl: ${websocketBaseUrl}`);
const socket = new WebSocket(websocketBaseUrl);

Expand Down

0 comments on commit 62d77d9

Please sign in to comment.