Comments (6)
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.
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.
@gbraad Is the issue solved for you?
from socketstream.
btw why would proxy rewrite be an issue, it's pretty standard
from socketstream.
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.
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)
- Token Authentication with Socketstream HOT 3
- Base SocketStream client on SystemJS HOT 1
- Security hardening HOT 1
- develop: engine.io client looses this HOT 2
- Transport for "undefined" must be a function HOT 2
- Separate Streams per View
- Missing steps in installation. HOT 5
- Uncaught Error: Cannot find module 'socketstream-session' within '.' HOT 14
- Problem with 'browserifyExcludePaths' client option HOT 1
- existsSync no longer exists on Node 6 HOT 4
- Is project is dead? HOT 8
- Starting http server with ss.http.middleware manually and passing to ss.start(server) is not working. HOT 1
- Bundling issues HOT 1
- Website URL/certificate woes... HOT 3
- Error: Cannot find module './lib/parse-js' HOT 2
- Grab bag of issues HOT 7
- Download stream data HOT 1
- Roadmap for 0.4.6 HOT 10
- Regular Expression DoS vulnerability HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from socketstream.