I have read the above disclaimer and I am submitting a new bug report and have verified no other duplicate reports exist in the Issues or Discussions tabs.
Describe the Issue
(Tested In Firefox, I have not tried Chrome)
Trying to connect to rooms hosted cleartext on port 80 or with TLS on port 443 isn't currently possible, at least not without doing a local script override.
As far as I can tell, at least, the problem is that when the URL is parsed in JS, the port field is null even when it was explicitly specified, if the port is the default port for that protocol (e.g. 80 for ws://, 443 for wss://). Because of that, the check on this line changes it to 38281.
Reproduction Steps
- Open any app that uses archipelago.js - https://topheranselmo.com/archipelago/ for example
- Open dev tools
- Attempt to connect to ws://example.com:80 or wss://example.com:443
- In dev tools network tab, observe that the connection was to port 38281
Expected Behavior
It should be possible to connect to rooms on cleartext port 80 or TLS port 443
Library Version
2.0.4
Environment / Runtime
Firefox 149
Project Repository
No response
Additional Notes, Screenshots, or Files
No response
I have read the above disclaimer and I am submitting a new bug report and have verified no other duplicate reports exist in the Issues or Discussions tabs.
Describe the Issue
(Tested In Firefox, I have not tried Chrome)
Trying to connect to rooms hosted cleartext on port 80 or with TLS on port 443 isn't currently possible, at least not without doing a local script override.
As far as I can tell, at least, the problem is that when the URL is parsed in JS, the
portfield isnulleven when it was explicitly specified, if the port is the default port for that protocol (e.g. 80 forws://, 443 forwss://). Because of that, the check on this line changes it to 38281.Reproduction Steps
Expected Behavior
It should be possible to connect to rooms on cleartext port 80 or TLS port 443
Library Version
2.0.4
Environment / Runtime
Firefox 149
Project Repository
No response
Additional Notes, Screenshots, or Files
No response