Giter VIP home page Giter VIP logo

Comments (4)

oberstet avatar oberstet commented on May 27, 2024 1

the reason is that I don't want my app to be tied to a web socket framework, I could swap one framework by the other just replacing the implementation

tbh, I don't believe it makes sense or is a well-defined goal, but in general, I'd have a look at the "sans IO" approach https://sans-io.readthedocs.io/

from autobahn-python.

melardev avatar melardev commented on May 27, 2024

By the way, this indirection may seem unnecessary, but actually, the App class in my project does not even know the shape of the WebSocket subscribe message, here it does to keep it simple. I used to have another abstraction layer on top of the AutobahnWsClient and that's what the App has a reference to, it is what actually knows how WebSocket messages look like, the App is only notified when data (after decoding and formatting it by the abstraction layer) is available, this "architecture" is very common and that's the thing I want to do.

from autobahn-python.

oberstet avatar oberstet commented on May 27, 2024

Autobahn already is non-blocking, so you don't have to do anything extra, just use it. Or fork it!

from autobahn-python.

melardev avatar melardev commented on May 27, 2024

Autobahn already is non-blocking, so you don't have to do anything extra, just use it. Or fork it!

Hi. Yes I know, what I am trying to say is if someone could help me figure out some way of using autobahn to get my question done, please. It is not anything very complex and specific to my app it is just a general concept that I think many would benefit from too.

from autobahn-python.

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.