- HTML5 + Javascript codes generated by GPT-4
- Connect to
GET /events
when page initialized - Two buttons(1 and 2), clicked to emit json message to
POST /events
, like{ "text": "sendButton1" }
- Receive Event (json formated) from SSE connection, like
{ "target": "sendButton1", "event": "clicked" }
- Update the coutner of clicked times for current clicked button
GET /events
, SSE endpointPOST /events
, for web client emit message to backend- return/response immediately
- later, here can trigger a BPMN workflow, then return/response immediately
- after a workflow finished, emit the result to specialized SSE connection