class

Phoenix::Push

Inherits Reference < Object

Constructors

new(event : String, payload : JSON::Any, timeout : Time::Span)
Source

Instance methods

event
Source
payload
Source
receive(status : String, &callback : JSON::Any -> ) : self

Chainable callback registration. Status is "ok", "error", or "timeout". All callbacks receive a JSON::Any argument (ignored for timeout).

Source
ref=(ref : String | Nil)

Set by Channel when sending

Source
reset
Source
timeout
Source
trigger(status : String, response : JSON::Any) : Nil
Source
trigger_timeout
Source