-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
socket.io or REST api? #5
Comments
For usage with socket.io, I would recommend reading: https://blog.rotenberg.io/million-user-webchat-with-full-stack-flux-react-redis-and-postgresql/ |
Thanks for the link but I'm actually struggling where to exactly I should implement the API itself. Would you recommend to start a second project only for the API? |
With the new
With UglifyJS well configured it will drop the condition as we build scripts for browser with |
So basically we have to make a separate node server as an api? Is there any way to simply ignore |
@tsm91 you can: #45 (comment) |
aaaa the middleware stack, i was putting api routes after react-router ;) |
@iam4x i can't seem to get socket.io work while running webpack, i mean i constantly see the socketio pollings from browsersync and webpack probably. any idea for that? |
I don't have any experience with socket.io sorry, but maybe would help: webpack/webpack-dev-server#76 |
Yep i've tried that, the original problem is, webpack-dev-server's socket connection is on the default path. As mentioned here |
Any thoughts about how to integrate any of the both?
The text was updated successfully, but these errors were encountered: