NoMethodError: undefined method encoding' for "{\"data\"=>\"pong\", \"playerID\"=>\"1\"}":String from /usr/lib/ruby/gems/1.8/gems/json_pure-1.2.2/lib/json/pure/parser.rb:73:ininitialize'
from /usr/lib/ruby/gems/1.8/gems/json_pure-1.2.2/lib/json/common.rb:128:in new' from /usr/lib/ruby/gems/1.8/gems/json_pure-1.2.2/lib/json/common.rb:128:inparse'
from (irb):5
Thanks for the report. Pushed a change to define force_encoding wrapper in WebSocket class instead of defining String#force_encoding in Ruby 1.8, so hopefully the issue is fixed.
Looks like i'm getting issues with the json gem
NoMethodError: undefined method
encoding' for "{\"data\"=>\"pong\", \"playerID\"=>\"1\"}":String from /usr/lib/ruby/gems/1.8/gems/json_pure-1.2.2/lib/json/pure/parser.rb:73:in
initialize' from /usr/lib/ruby/gems/1.8/gems/json_pure-1.2.2/lib/json/common.rb:128:innew' from /usr/lib/ruby/gems/1.8/gems/json_pure-1.2.2/lib/json/common.rb:128:in
parse' from (irb):5