Python clients would be ideal for background tasks and server side code to send notifications to the router.
The javascript library could be used to create a component similar to the timer where you specify the channel it subscribes to and a callback to execute.
I would love proper publish/subscribe messaging! The current system is workable, but requires too much knowledge about where events are originating and where they’re going.
I’d even be happy with pub/sub on the client side only, if the full client/server version was too problematic.