loopback-sdk-builder icon indicating copy to clipboard operation
loopback-sdk-builder copied to clipboard

Realtime ? What the good way ?

Open imike57 opened this issue 6 years ago • 0 comments

What type of issue are you creating?

  • [ ] Bug
  • [ ] Enhancement
  • [x ] Question

What version of this module are you using?

  • [ x] 2.0.10 (Stable)
  • [ ] 2.1.0-rc.n (2.1 Release Candidate n)
  • [ ] Other

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

imike57 avatar Oct 04 '18 16:10 imike57