Skip to content

module Athena::Mercure::Hub::Interface #

Represents the API that a Mercure hub instance must implement.

Direct including types

Athena::Mercure::Hub Athena::Mercure::Spec::MockHub

Methods#

abstract #public_url : String#

Returns the public URL of this hub used to subscribe.

View source

abstract #publish(update : AMC::Update) : String#

Publishes the provided update to this hub.

View source

abstract #token_factory : AMC::TokenFactory::Interface | ::Nil#

Returns the AMC::TokenFactory::Interface associated with this hub.

View source

abstract #token_provider : AMC::TokenProvider::Interface | ::Nil#

Returns the AMC::TokenProvider::Interface associated with this hub.

View source

abstract #url : String#

Returns the internal URL of this hub used to publish updates.

View source