class

PubSubHubbub::Subscriber

Inherits Reference < Object

Constructors

new(topic : String, secret : Nil | String = nil)
Source

Class methods

emit(subscriber : Subscriber, event : Event, data : String | Nil = nil)

Send signal to call functions attached to corresponding Event

Source
hooks
Source
on(event : Event, &block : Subscriber, String -> )

Attach a block (function) to a specific 'Event', when the event occurs, the function will be called.

Source

Instance methods

challenge_verification(params : HTTP::Params)

Check if hub.challenge exists and return them.

Source
check_signature(signature : String, body : String | Nil)

Recompute the SHA1 signature with the shared secret using the same method as the hub.

Source
emit(event : Event, data : String | Nil = nil)
Source
secret
Source
secret=(secret : String | Nil)
Source
subscribe
Source
topic
Source
topic=(topic : String)
Source
unsubscribe
Source