1. Start Orchestra, Websocket Server for KOI APP and Websocket Server for Webshop in sequence, that is, start three servers in total.
  2. Start the local Web Shop emulator and start two to simulate the scenario of one user and multiple Web Shop instances.

Click the KOI Login button twice to get two different Transaction ids:

  1. Enter both transaction ids into the KOI App emulator and click the button Confirm Consent:

Web Shop 1 will receive a confirmation, but Web Shop 2 will not.

Then enter the Transaction ID for Web Shop 2 into the KOI App simulator and click Confirm Consent.

At this point, Web Shop 2 also received confirmation.

  1. Finally, clicking on the KOI App’s Global Profile Update will push updates to the three hard-coded Nike WebShop fields in the emulator to all Nike WebShop instances that the user has logged in to.

Webshop EMULators A and B will receive the Global Profile update broadcast at the same time (both emulators will see pop-ups at the same time) :

For more of Jerry’s original articles, please follow the public account “Wang Zixi “: