4
edits
m (→Placing a call) |
(Update the initialisation section) |
||
| Line 28: | Line 28: | ||
When Talkilla starts within SocialAPI, as part of its initialization, it will start a web worker (https://developer.mozilla.org/en-US/docs/Web/Guide/Performance/Using_web_workers ) for each installed SPA. | When Talkilla starts within SocialAPI, as part of its initialization, it will start a web worker (https://developer.mozilla.org/en-US/docs/Web/Guide/Performance/Using_web_workers ) for each installed SPA. | ||
When the SPA | When the SPA is loaded, Talkilla will send a message containing the credentials to connect the SPA to its provider: | ||
event.data will be: | event.data will be: | ||
{topic: " | {topic: "connect", data: <credentials>} | ||
where | where `credentials` is an arbitrary object containing the user's credentials for this SPA/Provider. | ||
At this point, the SPA can start connecting to the service provider's servers. | At this point, the SPA can start connecting to the service provider's servers. | ||
| Line 44: | Line 37: | ||
postMessage({ | postMessage({ | ||
topic: " | topic: "connected", | ||
data: { | data: { | ||
addresses: [{type: "pstn", value: "+33698234520"}, | addresses: [{type: "pstn", value: "+33698234520"}, | ||
edits