UWStout / nodejs-canon-control-server

An HTTP/Websockets server interface for the Canon EDSDK
5 stars 1 forks source link

Clients Should Be Able To Subscribe to Socket Messages #3

Open Olliebrown opened 2 years ago

Olliebrown commented 2 years ago

While the socket.io message system needs to be able to send any events that the EDSDK might have as messages, a connected client should only receive messages it has explicitly opted in to. This can be achieved by having 'subscription' routes as part of the normal REST API.

Thoughts on implementation: