virtkick / http-master

versatile front end http service with reverse proxy
MIT License
139 stars 17 forks source link

Redirect a Socket Request #115

Open gautamverma opened 8 years ago

gautamverma commented 8 years ago

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 commented 8 years ago

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