-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
WebSocket connector support #1883
Comments
@pktippa thank you for opening the issue. Could you please clarify whether you are looking for a websocket client (allowing your LB4 server app to connect to another WebSocket server), a websocket server (allowing an LB4 server to accept incoming websocket connections e.g. from a single-page HTML5 applications) or both? If both, which part is more important to you? 1. accept incoming websockets 2. connect to 3rd party services via outgoing websockets. |
I would like to include this discussion into a broader one - how to support messaging/eventing style APIs with corresponding transports. I'll open a new issue to cover various use cases and possible solutions. |
See #1884 |
@bajtos |
@bajtos, like with Fireloop and LB3, my clientapps got automatically the updates from server app of Fireloop. I think realtime database are a must have. Fireloop isn't developed anymore and would be fantastic to have in LB4! |
It's so true. People expect this behavior. They watch the screen, new data comes in and they just see it expand. No refreshes. That's my problem even with the LB3 samples; most of them seem to be "Chat apps" that show a totally different API than access any data through LB. If you're going to do that, you don't need LB in the middle. One of the reasons I chose LB is that I thought the work we did to obtain data and display it wouldn't be lost when we went to real time. Now, there's more architecture work than I expected. One of my guys did something pretty neat, he just implemented a periodic "Get" on the data; same code does the initial page reload as the subsequent updates. However, I'd prefer a server driven push than polling. At least it's working. I agree about LB4. That's one of the dilemmas; along with ACL's, realtime really is important. We're looking at Fireloop. At least the code is there, but seems like a big task to take on. Onixjs.io seems to be down too.
|
For inbound, https://github.com/raymondfeng/loopback4-example-websocket should be a good starting point. I'm considering to refine it into
For outbound, we also had a PoC at https://github.com/strongloop/loopback4-example-kafka. I'm expecting to build connectors/service-proxies for messaging (especially pub/sub) backends. |
Thanks Raymond, I'll check them out. To be clear, the use case I was looking at is something like this:
The code could be slightly different, as a first time 'get' would be straight forward, whereas updated data would have some formatting decisions ... sorting, filtering, pagination, etc. In principal, mostly the same. The client would do this on an API by API basis; not everything needs to be real time.
|
This issue has been marked stale because it has not seen activity within six months. If you believe this to be in error, please contact one of the code owners, listed in the |
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the |
Description / Steps to reproduce / Feature proposal
@bajtos rising here.
Original request in LB3
https://github.com/strongloop/loopback/issues/327#issuecomment-431006523#
Current Behavior
Expected Behavior
See Reporting Issues for more tips on writing good issues
The text was updated successfully, but these errors were encountered: