Reza Razavipour
2017-04-12 20:13:28 UTC
This is a follow on to an original posting that I could not find anymore :(
At application start time, I need to perform the following async tasks:
- Load a config file
- Retrieve a server address from the config data and request a new model
every 10 seconds.
- Using the above mentioned server, make an HTTP get call and receive a
websocket address.
- Listen on data coming in on the websocket.
I am trying to figure out to chain this action together and run
sequentially.
Each of the above mentioned tasks are observables that I need to subscribe
to.
I am trying to figure out how do the chaining using RxJS and looking at
switchMap.
Great so that chains all of my observables into 1, correct?
If so, where do specify the subscriptions and actions to perform when there
is data to process?
Any ideas or explanations?
At application start time, I need to perform the following async tasks:
- Load a config file
- Retrieve a server address from the config data and request a new model
every 10 seconds.
- Using the above mentioned server, make an HTTP get call and receive a
websocket address.
- Listen on data coming in on the websocket.
I am trying to figure out to chain this action together and run
sequentially.
Each of the above mentioned tasks are observables that I need to subscribe
to.
I am trying to figure out how do the chaining using RxJS and looking at
switchMap.
Great so that chains all of my observables into 1, correct?
If so, where do specify the subscriptions and actions to perform when there
is data to process?
Any ideas or explanations?
--
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.