{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/771f52b5b1d9889ded1391e182b44dbb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"771f52b5b1d9889ded1391e182b44dbb","url":"https://api.github.com/users/millisami","login":"millisami","id":47914},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-11-02T21:42:00Z","comments":8,"closed_at":null,"url":"https://api.github.com/repos/socky/socky-client-ruby/issues/4","body":"The following is the ruby client file.\r\n\r\n``` ruby\r\n$socky_client = Socky::Client.new('ws://localhost:3001/websocket/theapp', 'my_secret')\r\n$socky_client.trigger!('unit_result', :channel => \"channel-1\", :data => {:station_id => 2323223, :page_number => 1})\r\n```\r\n\r\nWhen I run it, `require 'socky/client'`, I get this EOFError\r\n\r\n```\r\n$ ruby doc/socky-client.rb                                                                                                   ruby-1.9.2-p180\r\n/Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/socky-client-0.5.0.beta1/lib/socky/client.rb:94:in `rescue in trigger!': end of file reached (EOFError) (Socky::Client::HTTPError)\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/socky-client-0.5.0.beta1/lib/socky/client.rb:85:in `trigger!'\r\n\tfrom doc/socky-client.rb:4:in `<main>'\r\n```\r\n\r\nAnd the socky server log prints the `Extra bytes after header` error:\r\n\r\n```\r\n$ bundle exec thin-websocket -R config.ru -p3001 start                                                                                                                                                       \r\n>> Thin web server (v1.2.11 codename Bat-Shit Crazy)\r\n>> Maximum connections set to 1024\r\n>> Listening on 0.0.0.0:3001, CTRL+C to stop\r\nSocky : sending : {\"event\":\"socky:connection:established\",\"connection_id\":\"1316691127621428\"}\r\nSocky : received : {\"event\":\"socky:subscribe\",\"channel\":\"trans-2011sep21-142902\",\"connection_id\":\"1316691127621428\"}\r\nSocky : sending : {\"event\":\"socky:subscribe:success\",\"channel\":\"trans-2011sep21-142902\"}\r\n!! Unexpected error while processing request: Extra bytes after header\r\n!! Unexpected error while processing request: Extra bytes after header\r\n``` \r\nWhat might have gone wrong?","html_url":"https://github.com/socky/socky-client-ruby/issues/4","number":4,"title":"EOFError while sending via client","id":1713020,"created_at":"2011-09-22T11:34:52Z"},"action":"reopened"}