jimsynz / faye-rails

Simple Rails glue for the Faye messaging protocol.
MIT License
435 stars 79 forks source link

Error: Could not find a usable connection type for /faye #52

Open timbaas opened 10 years ago

timbaas commented 10 years ago

Versions: Ruby 1.9.3, Thin 1.5.1, Rails 3.2.13, FayeRails 1.0.11, Faye 0.8.9

Chrome 29: Uncaught TypeError: Cannot read property 'JSON' of undefined

Firefox 23.0.1: this is undefined

Safari 6.0.5: 'undefined' is not an object (evaluating 'this.JSON')

Summary: 'this' seems to be undefined in faye.js resulting in: Error: Could not find a usable connection type for /faye

Found a corresponding fix here: https://github.com/faye/faye/commit/1ee9e5985d4182e8f099bc7016c01f35ce5da6ee

timbaas commented 10 years ago

I've tried the JSON fix in your gem and it fixed the issue..

kbrock commented 10 years ago

This seems to be working in chrome 36 for me. can this issue be closed?