class

ActionCable::SubscriptionAdapter::Async

Inherits ActionCable::SubscriptionAdapter::Base < ActionCable::SubscriptionAdapter::PubsubAdapter < Reference < Object

Constructors

Instance methods

broadcast(channel : String, payload : String) : Nil
Source
fast_broadcasts?

Fast-path support (P1.5): adapters that can fan out prebuilt envelopes (see Async) override this and the *_fast pair below.

Source
shutdown
Source
subscribe(channel : String, callback : Proc(String, Nil)) : Nil
Source
subscribe_fast(channel : String, connection : Connection, identifier : String) : Nil
Source
unsubscribe(channel : String, callback : Proc(String, Nil)) : Nil

Same Proc-identity deviation as Test (see subscription_adapter.cr): Procs have no identity in Crystal, so the whole channel is dropped.

Source
unsubscribe_fast(channel : String, connection : Connection) : Nil
Source

Nested types