Skip to content

Find a better public API to set a socket for HTTP server in NodeJS #2

Description

@thejhh

We use a private property of NodeJS HTTP server in PtthUtils.connectSocketToServer():

server._socket = socket;
server.emit('connection', this._server._socket);

This sets a new socket to Node's HTTP server manually.

I have also opened a question at StackOverflow about this issue.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions