-
Notifications
You must be signed in to change notification settings - Fork 72
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 connection from browser to custom microservice through webapp-starter #11
Comments
No, currently the webapp-starter does not support proxying websocket connections. It's a good idea, and something we've considered. For now, you could look at the predix-toolkit code for an example of proxying web socket connections. Also, this npm package is very popular, and supports web socket proxying: |
Would you be willing to accept a PR? |
Yes, I think a PR would be useful. How are you planning to implement it? |
Kind of like how it's implemented in the predix-toolkit example code you shared.
All communication will depend upon this socketID. Sounds good? |
Sounds good. Let's try to keep most of this logic in a separate file in the /server directory. Thanks for the initiative. |
Hi!
Is it currently possible to reverse-proxy WebSocket connections initiated by the browser to a custom microservice? The lack of it requires the front-end to connect to the microservice directly which entails authentication woes.
The text was updated successfully, but these errors were encountered: