WebAPI/PresentationAPI:Protocol Draft: Difference between revisions

→‎Terminate Presentation: update details for terminating presentation
(→‎Resume Connection: encrypt reconnect command)
(→‎Terminate Presentation: update details for terminating presentation)
Line 100: Line 100:


=== Terminate Presentation ===
=== Terminate Presentation ===
* STEP 1: setup control channel to remote device (send connect message: auth token)
* STEP 1: setup control channel to remote device
** STEP 1a: complete challenge with stored information
* STEP 2: terminate app / page via session Id (send terminate command: session Id) (terminate command should be encrypted and carried in encrypted-ctrl-msg command)
* STEP 2: terminate app / page via session Id (send terminate message: session Id)
* STEP 3: receiving user agent close the presented content and close data channel
* STEP 3: close control channel (send close message: )
* STEP 3a: server send terminate-ack to client
* STEP 4: client close control channel and notify onterminate event to controlling page
[[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 1: controlling page or presented content initiate connection.close()
Confirmed users
216

edits