Merge pull request #16 from nats-io/updates Updates to Crystal v1.33 and fixes Travis
Merge pull request #16 from nats-io/updates
Updates to Crystal v1.33 and fixes Travis
Simple NATS client for the Crystal programming language.
shard.yml
dependencies: nats: github: nats-io/nats.cr
shards install
require "nats" nc = NATS::Connection.new("demo.nats.io") nc.subscribe("foo") { |msg| puts "Received '#{msg}'"} nc.publish("foo", "Hello!") sub = nc.subscribe("req") do |msg| msg.respond("ANSWER is 42") end answer = nc.request("req", "Help!") puts "Received a response '#{answer}'!" sub.close nc.close
Unless otherwise noted, the NATS source files are distributed under the Apache Version 2.0 license found in the LICENSE file.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
NATS - Crystal Client
Simple NATS client for the Crystal programming language.
Installation
shard.yml:shards installUsage
License
Unless otherwise noted, the NATS source files are distributed under the Apache Version 2.0 license found in the LICENSE file.