Code Monkey home page Code Monkey logo

Comments (8)

janthurau avatar janthurau commented on September 26, 2024

thx for the report! We noticed the same for our cloud (where we allow anonymous access if wanted), and are also using notoken as a value for this case. It's on the list, right now the server will just wait for the auth token if you have an authentication hook (onAuthenticate defined).

from hocuspocus.

DenysPoliarush avatar DenysPoliarush commented on September 26, 2024

Hi @janthurau, I don't have an onAuthenticate hook on my server, but I still have this error.

The first loading is ok, but when it reconnects after some timeout, the connection closes and won't open.

Screenshot 2023-05-11 at 18 29 01

I've tried to work around it in many ways described in the documentation but to no avail.

I'm using the latest version of HocuspocusProvider and HocuspocusServer - 2.0.6

Can you suggest something?

Thanks!

from hocuspocus.

juliankrispel avatar juliankrispel commented on September 26, 2024

I am passing a token (intentionally) and I'm still getting this message :D

from hocuspocus.

valstu avatar valstu commented on September 26, 2024

I am passing a token (intentionally) and I'm still getting this message :D

Same here

from hocuspocus.

janthurau avatar janthurau commented on September 26, 2024

I cannot reproduce this (@valstu @juliankrispel @DenysPoliarush), if you can provide me with a sandbox / replit I'll have a look right away. Please move to #566 though, this issue here is about something else.

from hocuspocus.

valstu avatar valstu commented on September 26, 2024

I'm not 100% sure yet but this could be related to thing that React in strict mode will call all the effects twice on initial render (mount, unmount and mount again). I destroyed the connection when unmounting (using useEffect return) as it is supposed to but it seems that there are two websocket connections after that which somehow breaks things. I guess the hocuspocus instance was destroyed but not the websocket, anyways it was a late night while debugging this so some of the facts has disappeared from my brain 😅 But I'll try to see if I can reproduce some sandbox in the coming days.

from hocuspocus.

AliMamed avatar AliMamed commented on September 26, 2024

I am passing a token (intentionally) and I'm still getting this message :D

Same here

@juliankrispel @valstu hi. Have you managed to investigate on this? I am also passing token, but i am receiving these messages. It doesn't looks to me that there are any multiple connections and I am pretty sure that every time I initiate connection i pass the token.

from hocuspocus.

raineorshine avatar raineorshine commented on September 26, 2024

@AliMamed It's being tracked in #566. This ticket is for a different issue.

from hocuspocus.

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.