Init
After Registering Bus, you may want to enable a set of services that you are interested in.
In order to do so, you must be sure that the user is already authenticated.
{
"type": "BUS.INIT",
"payload": {
"services": "String[]!"
}
}
Usage
Here we tell Bus to initialize AUTH
, DIALER
and USER
services:
{
"type": "BUS.INIT",
"payload": {
"services": ["AUTH", "USER", "DIALER"]
}
}
As a result we receive a BUS.INIT_FULFILLED event.
{
"type": "BUS.INIT_FULFILLED"
}
note
It will never result in a BUS.INIT_REJECTED event, even if any of the services fail to initialize.
tip
Some services don't need to be initialized such as the numbers service.