Skip to content

ccqpein/nats-cl

Repository files navigation

README

Install

manually compile and use this repo

(push "/path/to/nats-cl/" asdf:*central-registry*)

(asdf:compile-system :nats-cl)

(asdf:load-system :nats-cl)

OR, import by quicklisp, make sure you have installed it first:

;;; put this repo in ql:*local-project-directories*
(ql:quickload "nats-cl")

Usage

Here is NATs' protocol details.

examples.lisp includes how to use this client lib.

After connection be made, NATs server will send a INFO message and a PING message to client. So, in examples:

(let* (sokt
       info
       )
  (multiple-value-setq (sokt info) (connect-nats-server "127.0.0.1")))

TODO

  • Leaf nodes
  • can change PING interval when it connect