Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + type Command string + const Attach + const Detach + type Event struct + Payload interface{} + Scope apistructs.Scope + Type string + type Manager struct + func New() (*Manager, error) + func (m *Manager) Handle(session sockjs.Session) + func (m *Manager) Start() + func (m *Manager) Stop() + type Protocol struct + Command Command + Scope apistructs.Scope + type Publisher struct + func NewPublisher() (*Publisher, error) + func (p *Publisher) EmitEvent(ctx context.Context, e Event) error + type Subscriber struct + func NewSubscriber(ec chan *Event) (*Subscriber, error) + func (s *Subscriber) Start() + func (s *Subscriber) Stop()