I feel stupid but I have to ask. How do we use the OnUpdateAsync hook on the ServerEventsFeature?
I know how to handle the OnConnect or OnCreated, but I can’t figure out how to get notified and react when a subscription’s channels are updated.
In my class, I can handle the OnCreated like this:
HostContext.GetPlugin<ServerEventsFeature>().OnCreated = (subscription, req) =>
{
HandleNewSub(subscription);
};
but after that…how to ensure my HandleSubChannelsUpdate is called when the OnUpdateAsync is fired?