Skip to content

The default webSocket port is different from the location's port #3011

Closed
@jinghm318

Description

Describe the bug

The webSocket's default port would be 3000, the same as the location's port, and that's ok.

When I use Charles to rewrite online link to local link for development, the webSocket's port remains 3000, that's not
convenient.
For example, the online link is http://www.test.com and the local link is http://localhost:3000

When I rewrite http://www.test.com to http://localhost:3000, the webSocket's port remains 3000, different from webpack dev server.
The webSocket's url would be ws://www.test.com:3000/ and it can't be proxied by Charles.

I think the default port should be 80 when I visit http://www.test.com and 443 while visiting https://www.test.com

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions