Sha256: ba3b63fcc98a749ca15e18c45d9215af807d8e2f974c7daa7456a2f9904d34b1
Contents?: true
Size: 341 Bytes
Versions: 1
Compression:
Stored size: 341 Bytes
Contents
require 'huginn/internal/message' module Huginn class Client include Celluloid DEFAULT_HOST = 'tcp://localhost:1883' def initialize(opts = {}) @server_uri = opts.fetch(:server_uri) { DEFAULT_HOST } end def send_message(topic, payload) Internal::Message.new_link(topic, payload).deliver end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
huginn-0.0.1.alpha | lib/huginn/client.rb |