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: