Sha256: 6318ff6ce89071b7a3e2e8dd07c15bea02268e96b7d8d483bf0aa3d5345e61a8

Contents?: true

Size: 310 Bytes

Versions: 28

Compression:

Stored size: 310 Bytes

Contents

module Sinatra
  module WebSocketIO

    def self.registered(app)
      app.helpers Sinatra::WebSocketIO::Helpers

      app.get '/websocketio/websocketio.js' do
        content_type 'application/javascript'
        @js ||= ERB.new(Sinatra::WebSocketIO.javascript).result(binding)
      end
    end

  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
sinatra-websocketio-0.4.1 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.4.0 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.3.9 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.3.7 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.3.6 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.3.5 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.3.4 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.3.3 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.3.2 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.3.1 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.3.0 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.2.9 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.2.8 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.2.7 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.2.6 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.2.5 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.2.4 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.2.3 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.2.2 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.2.1 lib/sinatra-websocketio/application.rb