Skip to content

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

@thejhh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions