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

Redirect a Socket Request #115

Open
gautamverma opened this issue Dec 15, 2015 · 1 comment
Open

Redirect a Socket Request #115

gautamverma opened this issue Dec 15, 2015 · 1 comment

Comments

@gautamverma
Copy link

How to redirect the socket request using library.

I have done url rerouting

httpMaster.init({
    ports: {
        80: {
            router: {
                "z75.xyz.com/*": Integer,
                "z45.xyz.com/*": Integer,
                "z23.xyz.com/*": Integer,
                "zz1.xyz.com/*": Integer,
                "zzz.xyz.com*": Integer
            }
        }
    }
}, function (err) {
    if (err) {
        console.log(err);
    }

This is working but if put the socket domain into this, then it not getting directed to that port number. Any ideas ??

zzz, xyz and Integer are used to hide the details.

@Rush
Copy link
Member

Rush commented Dec 15, 2015

Hi @gautamverma - do you mean web sockets? And it works with normal requests?

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