Skip to content

Cluster Adapter Type is not compatible with io adapter #12

@SlmnFz

Description

@SlmnFz

Im using Express.js and socket.io/pm2 + typescript.

const clusterAdapter = createAdapter()(nsp);
io.adapter(clusterAdapter);
setupWorker(io);

io.adapter accepts AdapterConstructor
the error:

Argument of type 'ClusterAdapter' is not assignable to parameter of type 'AdapterConstructor'.
Type 'ClusterAdapter' is missing the following properties from type 'typeof Adapter': prototype, getEventListeners, addAbortListener, errorMonitor, and 5 more

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