It seems that current example code does not work.
I've got following error.
DEBUG - Connection openned as user: d38f573b-6667-46b1-a3e8-6a332cd64a68 on channel: channel.
DEBUG - Calling event: test as user: d38f573b-6667-46b1-a3e8-6a332cd64a68 on channel channel.
DEBUG - {"some"=>"data"}
ERROR - Error while running the event handler
ERROR - wrong number of arguments (1 for 3)
ERROR - C:/sample/vendor/bundle/ruby/2.0.0/gems/padrino-websockets-0.1.0/lib/padrino-websockets/faye/helpers.rb:5:in `send_message'
C:/sample/bays/app/app.rb:32:in `block (2 levels) in <class:App>'
C:/sample/bays/vendor/bundle/ruby/2.0.0/gems/padrino-websockets-0.1.0/lib/padrino-websockets...
Faye::Helpers.send_message needs 3 parameters, but example code pass only 1 parameter.
It seems that current example code does not work. I've got following error.
Faye::Helpers.send_message needs 3 parameters, but example code pass only 1 parameter.