class

Athena::Mercure::Hub

Inherits Athena::Mercure::Hub::Interface < Reference < Object

Default implementation of AMC::Hub::Interface.

Constructors

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

Instance methods

public_url

Returns the public URL of this hub used to subscribe.

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

Publishes the provided update to this hub.

Source
token_factory

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

Source
token_provider

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

Source
url

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

Source

Nested types