Skip to content

Subscription notifications (demo set up) #910

@suryayadavalli

Description

@suryayadavalli
  1. PITON App subscribes for notifications via HSLynk
  2. HSLynk registers/ subscribes itself with opencitylabs for notifications (for that specific client)
  3. opencitylabs notifies resthook when criteria is met
  4. HSLynk's resthook writes to websocket
  5. PITON app listens to websocket for notifications from HSLynk's rest hook.

image

Rest hook (to be registered with opencitylabs) : https://api.hslynk.com/hmis-event-service/eventnotifications
Web socket URL that PITON need to listen to : realtime.hslynk.com/hmis-event-service/events-socket
Specific channels (to be listened to from PITON) :
To listen for all / any client's notifications : /clients
To listen to notifications for a specific client using client ID : /clients/{clientid}
To listen to notifications for a specific client using client's Dedup ID : /clients/{dedupclientid}

The body that is received from opencitylabs will be sent as is to the websocket (for demo purposes).

Test implementation of the complete flow
https://realtime.hslynk.com/hmis-event-service/socket-test.html

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions