fixed error with type constraints on ServerSentEventsNotificationPublisher