src/components/Publisher.tsx
: The "driver" of the workflow events flow. This component createsPatient-open
events and submits them to the hub.src/components/Subscriber.tsx
: The "listener" of workflow events. This component subscribes to theFHIRcast
hub and consumes notifications forPatient-open
events, displaying them in a list in order of most recently received.src/components/ConnectionHandler.tsx
: The actual handler of theWebSocket
messages coming in from the server for theSubscriber
component.
- Run the Medplum server
- Run
npm run dev
in this directory - Open two windows at
localhost:5173/publisher
andlocalhost:5173/subscriber