Code Monkey home page Code Monkey logo

Comments (10)

shenfeng avatar shenfeng commented on May 19, 2024

If Nginx or other reverse proxy can do this transparently, then http-kit will not duplicate the logic.

From this discussion tornadoweb/tornado#668, it seems that the per-frame compression spec is not finalized yet

Anyway, will look into this, try to write some code to see if it feels right to do so. will keep you updated.

from http-kit.

brunchboy avatar brunchboy commented on May 19, 2024

I wonder if browsers are starting to expect this? I can’t get WebSocket connections to work to http-kit. In Safari attempts result in: [Error] WebSocket connection to 'ws://localhost:16000/ws' failed: Compressed bit must be 0 if no negotiated deflate-frame extension (1, line 0), and in Chrome I see: WebSocket connection to 'ws://localhost:16000/ws' failed: Invalid frame header. So for now I have to give up on the idea of WebSockets, and just have my page poll for new data frequently.

from http-kit.

theronic avatar theronic commented on May 19, 2024

@brunchboy I followed the sente README to the letter, and I'm also getting the exact same errors in Chrome and Safari.

from http-kit.

brunchboy avatar brunchboy commented on May 19, 2024

I’d love for this to work, so I can stop wasting (albeit small amounts of) CPU polling every 30ms.

from http-kit.

theronic avatar theronic commented on May 19, 2024

@brunchboy my problem was caused by ring middleware.

from http-kit.

brunchboy avatar brunchboy commented on May 19, 2024

Oh, really? Which piece of middleware, and how were you able to resolve it?

from http-kit.

brunchboy avatar brunchboy commented on May 19, 2024

I really wish I were able to use this functionality. @pate can you tell me what middleware was the issue and how you resolved it?

from http-kit.

ptaoussanis avatar ptaoussanis commented on May 19, 2024

@pate or anyone else have any input on this? Thanks!

from http-kit.

brunchboy avatar brunchboy commented on May 19, 2024

Even if not, I don’t think it was inappropriate of you to close the issue, if @pate is correct, the problem is not with http-kit.

from http-kit.

ptaoussanis avatar ptaoussanis commented on May 19, 2024

@brunchboy Thanks!

from http-kit.

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.