Skip to content

Unable to connect to AP rooms hosted on port 80 or 443 #242

Description

@mcronce

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.

  • Confirm

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

  1. Open any app that uses archipelago.js - https://topheranselmo.com/archipelago/ for example
  2. Open dev tools
  3. Attempt to connect to ws://example.com:80 or wss://example.com:443
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    is: bugSomething isn't workingmeta: unconfirmedUnconfirmed issue, requires investigation.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions