Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple path on same port #1019

Closed
LYZhelloworld opened this issue Feb 27, 2017 · 2 comments
Closed

Multiple path on same port #1019

LYZhelloworld opened this issue Feb 27, 2017 · 2 comments

Comments

@LYZhelloworld
Copy link

Is it possible to host multiple applications on the same port, but with different path? For example one on ws://host-name:1234/path1 and another on ws://host-name/path2

@LYZhelloworld
Copy link
Author

Well I think I have found it.

After reading the source code, I realized that I can use ws.upgradeReq.url to get the path of request on connection.

@maxcnunes
Copy link

In case someone else needs it too. There is a good example here as well: #885 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants