Skip to content

Commit d03546c

Browse files
author
Jicheng Lu
committed
add slash in websocket
1 parent 93bc01c commit d03546c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib/services/realtime-chat-service.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,10 @@ function buildWebsocketUrl() {
132132
const host = PUBLIC_SERVICE_URL.split('://');
133133

134134
if (PUBLIC_SERVICE_URL.startsWith('https')) {
135-
url = `wss:${host[1]}`;
135+
url = `wss://${host[1]}`;
136136
} else if (PUBLIC_SERVICE_URL.startsWith('http')) {
137-
url = `ws:${host[1]}`;
137+
url = `ws://${host[1]}`;
138138
}
139-
140139
return url;
141140
}
142141

0 commit comments

Comments
 (0)