module
Athena::Mercure::Hub::Interface
Overview
Represents the API that a Mercure hub instance must implement.
Direct including types
Defined in:
hub/interface.crInstance Method Summary
-
#public_url : String
Returns the public URL of this hub used to subscribe.
-
#publish(update : AMC::Update) : String
Publishes the provided update to this hub.
-
#token_factory : AMC::TokenFactory::Interface | Nil
Returns the [AMC::TokenFactory::Interface][] associated with this hub.
-
#token_provider : AMC::TokenProvider::Interface | Nil
Returns the [AMC::TokenProvider::Interface][] associated with this hub.
-
#url : String
Returns the internal URL of this hub used to publish updates.
Instance Method Detail
abstract
def token_factory : AMC::TokenFactory::Interface | Nil
#
Returns the [AMC::TokenFactory::Interface][] associated with this hub.
abstract
def token_provider : AMC::TokenProvider::Interface | Nil
#
Returns the [AMC::TokenProvider::Interface][] associated with this hub.