FIRST-Tech-Challenge / FIRST-Tech-Challenge/scorekeeper
WSS connection when using HTTPS
- Dominant language
- No language data
- Stars
- 110
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
When Using HTTPS (ngrok) everything is HTTPS and working great but not the WebSocket in Display or Match Control Page
**To Reproduce**
Steps to reproduce the behavior:
1. run FTC Locally
2. ngrok HTTP 80
3. Visit the link
4. login as local
5. login you will see DISCONNECTED!! above
**Expected behavior**
it should works I fixed the issue by looking for the file of the code and making these changes:
from new c(t)
to new c(t.replace("ws",window.location.href.includes("https") ? "wss" : "ws"))
**Screenshots**






**Additional context**
I don't know if it's bug or intended behavior but I thought you may want to fix it
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.