0

I am writing a web application that loads starts Websocket right after the initial page load. It uses the gems sprockets, rack, thin and em-websocket. When I require the files in this order:

require "sprockets"
require "rack"
require "thin"
require "em-websocket"

the application runs and the Websocket communication succeeds, but when I bring sprockets after rack:

require "rack"
require "sprockets"
require "thin"
require "em-websocket"

Websocket does not start. At the moment, my code does not use anything from sprockets. It is just loaded, but not used yet. Why is this not running?

sawa
  • 165,429
  • 45
  • 277
  • 381
  • Are you getting an error message? What happens exactly? – davogones May 28 '13 at 02:32
  • It looks like the initial page rendering succeeds, but the Websocket communication that is supposed to begin right after it does not. – sawa May 28 '13 at 02:34

0 Answers0