From 2f19874c17af4cd521765e98e93069993ca92b54 Mon Sep 17 00:00:00 2001 From: Ryan Hamamura <58859899+ryanhamamura@users.noreply.github.com> Date: Thu, 12 Feb 2026 14:32:05 -1000 Subject: [PATCH] feat: add PubSub() accessor to V struct --- via.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/via.go b/via.go index 3b3bf41..5b5668a 100644 --- a/via.go +++ b/via.go @@ -419,6 +419,11 @@ func (v *V) HTTPServeMux() *http.ServeMux { return v.mux } +// PubSub returns the configured PubSub backend, or nil if none is set. +func (v *V) PubSub() PubSub { + return v.pubsub +} + // Static serves files from a filesystem directory at the given URL prefix. // // Example: