diff --git a/subscriber_handler.go b/subscriber_handler.go index d1b32b5..0998982 100644 --- a/subscriber_handler.go +++ b/subscriber_handler.go @@ -2,5 +2,5 @@ package overflow_subscriber type SubscriberHandler interface { GetChannel() string - OnSubscribe(payload string) + OnSubscribe(channel string, payload string) } diff --git a/subscriber_handlers.go b/subscriber_handlers.go index 1ea7366..d1a7e7d 100644 --- a/subscriber_handlers.go +++ b/subscriber_handlers.go @@ -7,5 +7,5 @@ type SubscriberHandlers struct { func (h *SubscriberHandlers) GetChannel() string { return h.Channel } -func (h *SubscriberHandlers) OnSubscribe(payload string) { +func (h *SubscriberHandlers) OnSubscribe(channel string, payload string) { }