Method: MessageBus::Implementation#register_client_message_filter
- Defined in:
- lib/message_bus.rb
permalink #register_client_message_filter(channel_prefix) {|message| ... } ⇒ void
This method returns an undefined value.
Registers a client message filter that allows messages to be filtered from the client.
612 613 614 615 616 617 |
# File 'lib/message_bus.rb', line 612 def (channel_prefix, &blk) if blk configure(client_message_filters: []) if !@config[:client_message_filters] @config[:client_message_filters] << [channel_prefix, blk] end end |