Giter VIP home page Giter VIP logo

Comments (6)

thepian avatar thepian commented on June 9, 2024

The HTTP side is intended to be essentially static in production. You generate bundles for HTML,CSS and JS. On demand JS is currently only supported on the server, but will be static as well in 0.6 or 0.8

So in production the only thing to proxy is the websocket connection and fallback support from SockJS/Engine.io

What I'm essentially saying is that there is nothing in SocketStream itself that needs to be handled in production. You just need to serve the static and assets directories from your HAProxy/Nginx frontend and proxy to the SocketStream server for the connection.

There is no particular support for configuring the path for where the fallback XHRs go. You'd have to refer to the transport documentation for that.

from socketstream.

thepian avatar thepian commented on June 9, 2024

Hmm, did you just mean the /assets/ URL? I haven't used the feature but when setting packAssets you can set an asset URL rewriting function. Look in docs for cdn

from socketstream.

thepian avatar thepian commented on June 9, 2024

@gbraad Is the issue solved for you?

from socketstream.

thepian avatar thepian commented on June 9, 2024

btw why would proxy rewrite be an issue, it's pretty standard

from socketstream.

gbraad avatar gbraad commented on June 9, 2024

I haven't been able to look into this further in recent time. The proxy rewrite would not be a problem, but having the flexibility from within socketstream to define the paths would be appreciated, although not essential. It would be considered advanced functionality. Note: the proxy-ing in question is really lightweight and does not involve nginx as it is done on a simple ARM-based device using only Node.js

from socketstream.

thepian avatar thepian commented on June 9, 2024

As mentioned above you can already do that with the CDN configuration for assets. It isn't clear to me what you are trying to achieve though as all HTTP traffic in production should be static assets or SockJS/Engineio traffic.

If there is no clear requirement or issue I will have to close this

from socketstream.

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.