some endpoints subscribe to sse events. How we can implement a nice and unified pattern to subscribe to those and link them to the resource types?