Closed sh2 closed 1 year ago
Thanks - I believe there is even an API to get the websocket url - we should probably use that one instead?
Please check whether my fix works for you - I think it's the more robust fix (if it works :-)
Thank you for a more generic solution! There seems to be a slight error in the code. https://github.com/yGuy/chatgpt-mattermost-bot/commit/558f6ca52f461d8a16aa5c310b3a7cb8e6a2a45e
before wsUrl.protocol = wsUrl.protocol === 'https' ? 'wss' : 'ws'
after wsUrl.protocol = wsUrl.protocol === 'https:' ? 'wss' : 'ws'
D'oh. Thanks. Can you please check again?
OK. It works fine. Thank you!
Fix #18