Coder Social home page Coder Social logo

Comments (4)

dmonad avatar dmonad commented on June 5, 2024 1

It seems that it's the Awareness instance's fault. The Awareness instance is not destroyed because it could be used by other providers.

You will probably fix the issue by doing provider.awareness.destroy() before calling provider.destroy().

from y-websocket.

dmonad avatar dmonad commented on June 5, 2024

Hi @kapv89, thanks for opening this issue. It would help me greatly if you could find out which handler is still open.

from y-websocket.

kapv89 avatar kapv89 commented on June 5, 2024

hi @dmonad

below is the output from wtfnode


> [email protected] test
> node -r source-map-support/register -r dotenv/config dist/__tests__/main.js dotenv_config_path=.env.test.local

[1/1] app: single doc
Success: single doc in 1.06s
repeat: npm run test -- --filter "\[1/" 

All tests successful! in 1.06s
[WTF Node?] open handles:
- File descriptors: (note: stdio always exists)
  - fd 2 (tty) (stdio)
  - fd 1 (tty) (stdio)
- Sockets:
  - (?:?) -> localhost:? (destroyed)
  - 127.0.0.1:40838 -> 127.0.0.1:6379
  - 127.0.0.1:40840 -> 127.0.0.1:6379
- Timers:
  - (1 ~ 1 undefined) setupWS @ file:///home/k/Projects/proj/yjs-proto/exp/crdt-backend/node_modules/y-websocket/src/y-websocket.js:123
- Intervals:
  - (3000 ~ 3 s) (anonymous) @ file:///home/k/Projects/proj/yjs-proto/exp/crdt-backend/node_modules/y-protocols/awareness.js:59

I'll see what I can find, but cannot guarantee anything

from y-websocket.

kapv89 avatar kapv89 commented on June 5, 2024

Thanks that fixes it. Closing the issue.

from y-websocket.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.