gemhome / fnordmetric

(possible new home for) FnordMetric is a redis/ruby-based realtime Event-Tracking app
0 stars 1 forks source link

Call on_message in websocket.rb #35

Open bf4 opened 10 years ago

bf4 commented 10 years ago

Issue by phlegx Thursday Dec 20, 2012 at 14:28 GMT Originally opened as https://github.com/paulasmuth/fnordmetric/issues/109


Hi all!

I have take a look at the code. I don't understand when the method on_message in file /lib/fnordmetric/web/websocket.rb are called to send messages to the clients. Can anyone help me please?

Cheers

bf4 commented 10 years ago

Comment by skorfmann Friday Jan 18, 2013 at 13:31 GMT


This is a hook from Rack Websocket which is using Eventmachine under the hood. Basically this gets called whenever FnordMetric.publish is used on the client side. Hope that helps and is correct ( @paulasmuth ?) :)

Close?