Implement pub/sub
Add object pub/sub mechanism to service API.
See sofa documentation here.
Setup a bidirectional communication channel between client and service?
- MessageChannel (sent via cross-worker messaging?) if ServiceWorker is not supported
- else WebSocket (server-side service)
New subscription endpoint :
- subscribe(appName: String, collectionId: ID!, clientId: ID!)
- unsubscribe(appName: String, collectionId: ID!, clientId: ID!)
Edited by Yannick Li