Skip to content

Properly setting up UWS and Express #3400

@davedbase

Description

@davedbase

Hi there, been trying to read through some of the issues posted and the conclusion I've come to is that to use the UWS HTTP server with Express should be as simple as:

this.api = express({
  createServer: uws.http.createServer
});

Am I correct in this assumption? If not, is there any available documentation or guidance I can get on enabling it properly?

There's also this issue: #3205 however @dougwilson patch suggestion didn't work for me.

Finally using uws.http.createServer() and uws.http.createServer(app).listen(3000) didn't work either.

Thanks!

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