James Harton

Results 59 comments of James Harton

Right. I guess this just seemed obvious to me because Faye uses heavy use of threads via event machine. It might be a good idea to write a "concurrency warning"...

Just checking, because it's break on Rails 4 at the moment :) I don't really understand the problem, perhaps you can post a gist with the relevant information?

Doesn't Sprockets do this automatically?

It's not just you :( ``` curl -s http://localhost:3000/assets/faye.js | head -1 | cut -c 1-100 'use strict';var Faye={VERSION:'0.8.9',BAYEUX_VERSION:'1.0',ID_LENGTH:160,JSONP_CALLBACK:'jsonpcallb ```

Can you try using version 1.0.10 and get back to me?

Okay, I've updated the closure to pass in `this` in e859e56. How did that go?

Just out of interest, which faye engine are you using? Also, rather than `Thread.new` you could try [`EM.defer`](http://eventmachine.rubyforge.org/EventMachine.html#defer-class_method) instead.