diff --git a/handler.go b/handler.go index 410334a..43b668a 100644 --- a/handler.go +++ b/handler.go @@ -29,7 +29,7 @@ type SubHandler struct { // Returns whether the subscription should be accepted. VerifyChallenge func(h *esb.ResponseHeaders, chal *esb.SubscriptionChallenge) bool OnRevocate func(h *esb.ResponseHeaders, revocation *esb.RevocationNotification) - OnNotification func(h *esb.ResponseHeaders) + OnNotification func(h *esb.ResponseHeaders, notification *esb.EventNotification) // IDTracker used to deduplicate notifications IDTracker IDTracker @@ -294,7 +294,7 @@ func (s *SubHandler) handleNotification( } event := notification.Event if s.OnNotification != nil { - s.OnNotification(h) + s.OnNotification(h, ¬ification) } switch h.SubscriptionType {