Class: Rfaye::FayeExtension
- Inherits:
-
Object
- Object
- Rfaye::FayeExtension
- Defined in:
- lib/rfaye/faye_extension.rb
Instance Method Summary collapse
Instance Method Details
#incoming(message, callback) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/rfaye/faye_extension.rb', line 3 def incoming(, callback) p = Rfaye::Conf[:secure_channel_prefix].start_with?("/") ? Rfaye::Conf[:secure_channel_prefix] : "/" + Rfaye::Conf[:secure_channel_prefix] if ["channel"].start_with? p if !token_check() ["error"] = "channel private!" puts "BLOCK #{}" if Rfaye::Conf[:debug] end else puts "OK #{}" if Rfaye::Conf[:debug] end callback.call() end |