canmove, Confirmed users, Bureaucrats and Sysops emeriti
3,628
edits
| Line 67: | Line 67: | ||
| Messages that handle calls, can go two ways from the Worker to the SPA and vice-versa. | Messages that handle calls, can go two ways from the Worker to the SPA and vice-versa. | ||
| To send a message to  | To send a message to Talkilla (e.g. incoming call): | ||
|   postMessage({topic: <topic>, data: <data>}) |   postMessage({topic: <topic>, data: <data>}) | ||
| Receiving a message from  | Receiving a message from Talkilla (e.g. call offer), listen for message of structure: | ||
|   {topic: topic, data: <data>} |   {topic: topic, data: <data>} | ||