RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: bobbungee
I made a typo, it should simply be:
Thanks for this Ryan! One thing I'd like to mention is that Swing components should always be initialized on the EDT (Event Dispatch Thread). So, instead of HelloWorld.new :
SwingUtilities.invokeLater do |e|
This will prevent deadlocks and other unwanted behavior from happening.
Since thin's default timeout is 30 seconds, it is better to use this:
faye_server = Faye::RackAdapter.new(:mount => '/faye', :timeout => 25)