Skip to content

TypeError: e.nsp.allSockets is not a function #14

@Aborio

Description

@Aborio

I have this problem, any recommendation?
C:\Users\Agustin\Desktop\aytehn\api\node_modules\y-socket.io\dist\server\index.js:92
(await e.nsp?.allSockets()).size === 0 && (this.emit("all-document-connections-closed", [t]), this.persistence != null && (await this.persistence.writeState(t.name, t), await t.destroy()));
^

TypeError: e.nsp.allSockets is not a function
at Socket. (C:\Users\Agustin\Desktop\aytehn\api\node_modules\y-socket.io\dist\server\index.js:92:23)
at Socket.emit (node:events:518:28)
at Socket.emit (node:domain:488:12)
at Socket.emit (C:\Users\Agustin\Desktop\aytehn\api\node_modules\socket.io\lib\socket.js:142:10)
at Socket.onclose (C:\Users\Agustin\Desktop\aytehn\api\node_modules\socket.io\lib\socket.js:456:8)
at Client.onclose (C:\Users\Agustin\Desktop\aytehn\api\node_modules\socket.io\lib\client.js:253:24)
at Socket.emit (node:events:530:35)
at Socket.emit (node:domain:488:12)
at Socket.onClose (C:\Users\Agustin\Desktop\aytehn\api\node_modules\engine.io\lib\socket.js:317:10)
at Timeout. (C:\Users\Agustin\Desktop\aytehn\api\node_modules\engine.io\lib\socket.js:140:10)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7)

Node.js v20.11.0
[nodemon] app crashed - waiting for file changes before starting...

1 week ago, this worked well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions