Skip to content

class Athena::Mercure::Hub
inherits Reference #

Included modules

Athena::Mercure::Hub::Interface

Constructors#

.new(url : String, token_provider : AMC::TokenProvider::Interface, public_url : String | Nil = nil, token_factory : AMC::TokenFactory::Interface | Nil = nil, http_client : HTTP::Client | Nil = nil)#

View source

Methods#

#public_url : String#

View source

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

View source

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

View source

#token_provider : AMC::TokenProvider::Interface#

View source

#url : String#

View source