Talkilla/SPA API: Difference between revisions

Jump to navigation Jump to search
(Update the initialisation section)
Line 31: Line 31:
event.data will be:
event.data will be:
  {topic: "connect", data: <credentials>}
  {topic: "connect", data: <credentials>}
where `credentials` is an arbitrary object containing the user's credentials for this SPA/Provider.
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.
If the SPA connected successfully and is ready to receive calls, it will send to Talkilla a 'logged-in' message:
If the SPA connected successfully and is ready to receive calls, it will send to Talkilla a 'connected' message:


  postMessage({
  postMessage({
4

edits

Navigation menu