@@ -440,58 +440,18 @@ <h2>
440440 }).then(registerWithAppServer, logError);
441441 });
442442 });
443-
444-
445- /* Hypothetical end-to-end flow of a push service lifecycle
446- +--------+ +--------+ +--------+ +--------+
447- | webapp | | user | | push | | app |
448- | +SW | | agent | | server | | server |
449- +--------+ +--------+ +--------+ +--------+
450- | | | |
451- | | | Developer registers with push
452- | | | service(s) and receives data
453- | | | needed for app registration
454- | | | with push service
455- User invokes app, | | |
456- which is configured | | |
457- with push service | | |
458- registration options | | |
459- |<---- app setup with push service registration options if needed --->|
460- | | | |
461- |--register w/options--->| | |
462- | (user accepts) | |
463- | | | |
464- | |<-setup push service->| |
465- | | | |
466- |<--- call promise ------| | |
467- | fullfilled function w/ | | |
468- | registration attributes| | |
469- | | | |
470- |<----deliver registration attributes to app server for later use---->|
471- | | | |
472- | | | Server associates registration
473- | | | attributes with webapp
474- | | | |
475- | | | (sometime later)
476- | | | Server has data to push,
477- | | | invokes push server API as
478- | | | per registration attributes
479- | | | |
480- | | |<--push message-|
481- | | | per service API |
482- | | | |
483- | | (match to user agent) |
484- | | | |
485- | |<--push message--| |
486- | | per service protocol | |
487- | | | |
488- | (match to webapp) | |
489- | | | |
490- |<-----push message------| | |
491- | | | |
492- */
493-
494443</ pre >
444+
445+ < section class ="informative ">
446+ < h2 > Sequence diagram</ h2 >
447+ < figure >
448+ < a href ="sequence_diagram.png "> < img src ="sequence_diagram.png " width ="800 "> </ a >
449+ < figcaption >
450+ Example flow of events for registration, message delivery, and
451+ unregistration
452+ </ figcaption >
453+ </ section >
454+
495455 < section >
496456 < h3 >
497457 Push Server Discovery and API Use
0 commit comments