func New(wsPath string, webhookURLs []string) *WebNotifier {
	webhook := NewHTTPNotifier(webhookURLs)
	ws := NewWSNotifier(wsPath)
	n := WebNotifier{
		notifiers: []command.Notifier{webhook, ws},
		handlers:  ws.GetRESTHandlers(),
	}
	return &n
}
New returns a new instance of a WebNotifier.
package webnotifier
import (
	"encoding/json"
	"fmt"
	"time"
	"github.com/google/uuid"
	"github.com/hyperledger/aries-framework-go/pkg/common/log"
	"github.com/hyperledger/aries-framework-go/pkg/controller/command"
	"github.com/hyperledger/aries-framework-go/pkg/controller/rest"
)
const (
	notificationSendTimeout = 10 * time.Second
	emptyTopicErrMsg        = "cannot notify with an empty topic"
	emptyMessageErrMsg      = "cannot notify with an empty message"
	failedToCreateErrMsg    = "failed to create topic message : %w"
)
var logger = log.New("aries-framework/webnotifier")
type WebNotifier struct {
	notifiers []command.Notifier
	handlers  []rest.Handler
}