oktopus/backend/services/stomp/server/topic/subscription.go
2023-10-28 16:00:27 -03:00

12 lines
248 B
Go

package topic
import (
"github.com/go-stomp/stomp/v3/frame"
)
// Subscription is the interface that wraps a subscriber to a topic.
type Subscription interface {
// Send a message frame to the topic subscriber.
SendTopicFrame(f *frame.Frame)
}