Skip to content

Commit

Permalink
update url formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tot-kristian committed Jul 23, 2024
1 parent c266ac3 commit 752971e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nodb-event-listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class NodbEventListener {
const envUrlPart = props.envName ? `/${props.envName}` : "";

const formattedBaseUrl = props.baseUrl
.replace("http:", "ws:")
.replace("https:", "wss:");
.replace("http://", "ws://")
.replace("https://", "wss://");
this.socket = new WebSocket(
`${formattedBaseUrl}/ws/${props.appName}${envUrlPart}`,
{
Expand Down

0 comments on commit 752971e

Please sign in to comment.