Skip to content

Commit 3c073de

Browse files
authored
Merge pull request #360 from iceljc/features/refine-chat-window
add slash in websocket
2 parents 93bc01c + d03546c commit 3c073de

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)