Sha256: b876cafdf6400ef1162b8b54f26f200d251606407c3a0386997e2033bd59a172

Contents?: true

Size: 270 Bytes

Versions: 2

Compression:

Stored size: 270 Bytes

Contents

class AddController < ApplicationController
  def index
    response = nil

    self.wamp_session.call "com.example.back.add", [params[:a].to_i, params[:b].to_i] do |result, error, details|
      response = result
    end

    render json: { result: response }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wamp-worker-0.1.1 test/wamp_test/app/controllers/add_controller.rb
wamp-worker-0.1.0 test/wamp_test/app/controllers/add_controller.rb