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.2.0 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.1.7 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.1.6 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.1.5 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.1.4 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.1.3 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.1.2 lib/sinatra-websocketio/application.rb
sinatra-websocketio-0.1.1 lib/sinatra-websocketio/application.rb