| Class | FayeRails::Filter::DSL |
| In: |
lib/faye-rails/filter.rb
|
| Parent: | Object |
| callback | [R] | A small wrapper class around filter blocks to add some sugar to ease filter (Faye extension) creation. |
| channel | [R] | A small wrapper class around filter blocks to add some sugar to ease filter (Faye extension) creation. |
| direction | [R] | A small wrapper class around filter blocks to add some sugar to ease filter (Faye extension) creation. |
| message | [R] | A small wrapper class around filter blocks to add some sugar to ease filter (Faye extension) creation. |
| original_message | [R] | A small wrapper class around filter blocks to add some sugar to ease filter (Faye extension) creation. |
Called by FayeRails::Filter when Faye passes messages in for evaluation. @param block
The block you wish to execute whenever a matching message is recieved.
@param channel
optional: if present then the block will only be called for matching messages, otherwise all messages will be passed.
Syntactic sugar around callback.call which adds an error message to the message and passes it back to Faye, which will send back a rejection message to the sending client. @param reason
The error message to be sent back to the client.