{"repo":"nats-io/nats.rb","free":true,"listed":false,"github":"https://github.com/nats-io/nats.rb","clone":"git clone https://github.com/nats-io/nats.rb.git","description":"Ruby client for NATS, the cloud native messaging system.","language":"Ruby","stars":893,"topics":["ruby","nats","client","eventmachine","messaging","pubsub","cncf"],"license":"Apache-2.0","category":"chat-messaging","readme_excerpt":"NATS - Ruby Client A Ruby client for the NATS messaging system. Getting Started Starting from v0.11.0 release, you can also optionally install NKEYS in order to use the new NATS v2.0 auth features: If you're looking for a non-EventMachine alternative, check out the nats-pure gem. Basic Usage Wildcard Subscriptions Queues Groups Clustered Usage Auto discovery The client also auto discovers new nodes announced by the server as they attach to the cluster. Reconnection logic parameters such as time to back-off on failure and max attempts apply the same to both discovered nodes and those defined explicitly on connect: Advanced Usage See examples and benchmarks for more information.. TLS Advanced customizations options for setting up a secure connection can be done by including them on connect: Fibers Requests without a callback can be made to work synchronously and return the result when running in a Fiber. For these type of requests, it is possible to set a timeout of how long to wait for a single or multiple responses. New Authentication (Nkeys and User Credentials) This requires server with version = 2.0.0 NATS servers have a new security and authentication mechanism to authenticate with user credentials and NKEYS. A single file containing the JWT and NKEYS to authenticate against a NATS v2 server can be set with the user credentials option: This will create two callback handlers to present the user JWT and sign the nonce challenge from the server. The core client library never","default_branch":null,"files":null,"tree":[],"storefront":"/r/nats-io","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nats-io/nats.rb/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}