can't send messages over websocket with pusher and rails -



can't send messages over websocket with pusher and rails -

i tried send test-data websocketserver, can't work :(

my firebug console says this:

pusher : state changed : initialized -> connecting pusher : connecting : ws://192.168.56.101:8080/app/123?protocol=5&client=js&version=1.12.5&flash=false pusher : state changed : connecting -> connected pusher : event sent : {"event":"pusher:subscribe","data":{"channel":"test"}} pusher : event recd : {"event":"pusher_internal:subscription_succeeded","data":{},"channel":"test"} pusher : no callbacks on test pusher:subscription_succeeded

my controller looks this:

pusher.trigger('test', 'my_event', {:message => 'hello world'})

my developement.rb this:

# pusher settings require 'pusher' pusher.app_id = '123' pusher.key = '123' pusher.secret = '123' pusher.host = 'localhost' pusher.logger = rails.logger

my developement.log has entrys: pusher.localhost error:

pusher::error (404 not found (/apps/123/events)): app/controllers/admin/broadcasts_controller.rb:17:in `create'

without pusher.host got this:

pusher::authenticationerror (unknown auth_key): app/controllers/home_controller.rb:3:in `index'

ruby-on-rails pusher

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -