Confirmed users
216
edits
(→Architecture: update for controlling page and presented content) |
(→Close Connection: update detail of close connection) |
||
Line 76: | Line 76: | ||
[[File:Draft Protocol Terminate Presentation.png]] | [[File:Draft Protocol Terminate Presentation.png]] | ||
=== Close Connection === | === Close Connection === | ||
* STEP 1: controlling page or presented content initiate connection.close() | |||
* STEP 2: sending close command to remote device, with closeReason = "closed" | |||
* STEP 3: close data channel while receiving close command | |||
* STEP 4: notify onclose event to both controlling page and presented content | |||
[[File:Draft Protocol Close Connection.png]] | [[File:Draft Protocol Close Connection.png]] | ||
=== Resume Connection === | === Resume Connection === | ||
* STEP 1: setup control channel to remote device (send connect message: auth token) | * STEP 1: setup control channel to remote device (send connect message: auth token) |