lib/volt/server/channel_handler.rb in volt-0.2.3 vs lib/volt/server/channel_handler.rb in volt-0.2.4
- old
+ new
@@ -1,9 +1,9 @@
require 'json'
require 'sockjs/session'
class ChannelHandler < SockJS::Session
- def self.message_all
+ def self.message_all(message)
@@channels.each do |channel|
channel.send(message)
end
end
\ No newline at end of file