class

ActionCable::SubscriptionAdapter::Test

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

Constructors

Instance methods

broadcast(channel : String, payload : String) : Nil
Source
broadcasts(channel : String) : Array(String)
Source
clear_messages(channel : String) : Nil
Source
shutdown
Source
subscribe(channel : String, callback : Proc(String, Nil)) : Nil
Source
unsubscribe(channel : String, callback : Proc(String, Nil)) : Nil

Deviation from Ruby's unsubscribe(channel, callback): Proc has no identity in Crystal, so this drops every subscriber of the channel. Channels unsubscribe by stream name, which is the only real-world caller.

Source