Giter VIP home page Giter VIP logo

Comments (7)

kriskbx avatar kriskbx commented on May 24, 2024 1

Hej Flávio.

Thanks a lot for your suggestion. I think it would be better to move the logic to get the document name into the listen() method itself and add a documentName parameter to handleConnection().

handleConnection(incoming: WebSocket, request: IncomingMessage, documentName: string, context: any = null): void

Using context for this feels kinda hacky and we are still on alpha, so changing the API is not a big deal for me. What do you think?

from hocuspocus.

realflavioc avatar realflavioc commented on May 24, 2024 1

Heya! Yeah sounds good, just need a way to pass this in, ideally the fewer arguments we have the better, but 4 is not too bad

from hocuspocus.

kriskbx avatar kriskbx commented on May 24, 2024 1

Cool. Will include it in the next release and drop you a line here when it's published. ;)

from hocuspocus.

realflavioc avatar realflavioc commented on May 24, 2024 1

Oops my bad, I had made some changes on the project structure, and forgot to move the .npmrc, works perfectly thanks!

from hocuspocus.

kriskbx avatar kriskbx commented on May 24, 2024

I just published @hocuspocus/[email protected] which includes this change. I also updated the documentation on the integration of express: https://www.hocuspocus.dev/guide/framework-integration/#express

Let me know, if you need more help! :)

from hocuspocus.

realflavioc avatar realflavioc commented on May 24, 2024

Thanks @kriskbx, tried installing but it's not working:
error Couldn't find package "@hocuspocus/[email protected]"

from hocuspocus.

kriskbx avatar kriskbx commented on May 24, 2024

Try putting it in your package.json and run yarn update or npm update:

{
    "dependencies": {
        "@hocuspocus/server": "^1.0.0-alpha.44"
    }
}

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.