Sha256: ba24bd50eda97e9425afca238aebb84b88aad149b3c432e49f010b76391221be

Contents?: true

Size: 248 Bytes

Versions: 1

Compression:

Stored size: 248 Bytes

Contents

require 'rwt/DOM'
require 'rwt/HTTPRequest'
require 'json'

class Client
  def self.main
    out = DOM.getElementById('out')
    HTTPRequest.asyncGet('/json') do |response|
      DOM.setInnerText(out, JSON.load(response).inspect)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubyjs-0.8.0 examples/client_server/client.rb