mean-expert-official / loopback-sdk-builder

Tool for auto-generating Software Development Kits (SDKs) for LoopBack
Other
399 stars 178 forks source link

Realtime ? What the good way ? #625

Open imike57 opened 5 years ago

imike57 commented 5 years ago

What type of issue are you creating?

What version of this module are you using?

Write other if any:

Please add a description for your issue:

Hi,

I'm looking for a solution to use the API generated to provide realtime data... For now, the only way that it work for me has been to use createChangeStream() and unscubscibe/subscribe again to update my data, but I think it's not the good way to do as it seem the connexion expire fast and I got some error after some time.

sans-titre-1

I try to follow the example https://github.com/mean-expert-official/loopback-sdk-builder/wiki/5.-Usage-Examples

But without success.. there is nothing about "onCreateMessages" function in my generated API. This example is up to date ?

I see also Fireloop

This is the solution ? But the link to the documentation do not work... http://docs.fireloop.io/

There is not a simple way to use the services generated as realtime service ?

Someone can provide an simple example from a service generated by this component ?

Any help is welcome

Mike