Skip to content

cWS instead of uWS #567

@ghost

Description

You want to:

  • request a feature

info

Does engine.io should support cWS instead of uWS websocket module?

uWS is dead and cWS is the most mature successor and uses uWebsocket under the hood too.

I've tried to implement it by myself in server.js of engine.io adding simply new case in switch statement:

switch (this.wsEngine) {
    case 'ws': wsModule = require('ws'); break;
    case 'uws': wsModule = require('uws'); break;
    case 'cws':
      wsModule = require('@clusterws/cws');
      wsModule.Server = wsModule.WebSocketServer;
    break;
    default: throw new Error('unknown wsEngine');
  }

It seems to not working at all, but it states compatibility with ws module.

cWS github project: https://github.com/ClusterWS/cWS

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions