Skip to content

Commit 0e6c98d

Browse files
committed
fixing regression for https protocol (untested, keeping fingers crossed)
1 parent 558f6ca commit 0e6c98d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chatgpt-mattermost-bot",
3-
"version": "1.3.3",
3+
"version": "1.3.4",
44
"private": true,
55
"scripts": {
66
"start": "node ./src/botservice.js"

src/mm-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ client.setToken(mattermostToken)
1616

1717
const wsClient = new WebSocketClient();
1818
const wsUrl = new URL(client.getWebSocketUrl());
19-
wsUrl.protocol = wsUrl.protocol === 'https' ? 'wss' : 'ws'
19+
wsUrl.protocol = wsUrl.protocol === 'https:' ? 'wss' : 'ws'
2020

2121
new Promise((resolve, reject) => {
2222
wsClient.addCloseListener(connectFailCount => reject())

0 commit comments

Comments
 (0)