Skip to content

Redirect a Socket Request #115

Description

@gautamverma

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions