Here is an example of a mobile App sending data to a browser App via WebSocket.
Test method:
- Start the three servers in sequence.
- Start WebShop Simulator and click KOI Login:
Get a transaction ID: 6779BF60-51EA-11e9-AFE2-215027e53e71
- Open the KOI App Simulator and click Confirm Consent, which will send some of the directives hard-coded in the following simulator to the Web Shop:
The Webshop emulator immediately received the consent sent from the App:
Consent the detail:
ConfirmRequest also receives the confirmRequest response from App emulator, which contains the details of WebShop:
For more of Jerry’s original articles, please follow the public account “Wang Zixi “: