Sha256: ffe04044b04d2b780177cbf7075d8f4be3ff38072c3cdbe3ee59530d6acea860

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 Bytes

Contents

module WampRails
  module Command

    class Publish < BaseCommand
      attr_accessor :topic, :args, :kwargs, :options

      def initialize(topic, args, kwargs, options, client)
        super(client)
        self.topic = topic
        self.args = args
        self.kwargs = kwargs
        self.options = options
      end

      def execute
        session.publish(topic, args, kwargs, options) do |result, error, details|
          self.callback(result, error, details)
        end
      end

    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wamp_rails-0.0.2 lib/wamp_rails/commands/publish.rb