项目作者: ccqpein

项目描述 :
NATS Common Lisp client
高级语言: Common Lisp
项目地址: git://github.com/ccqpein/nats-cl.git
创建时间: 2020-04-06T14:48:47Z
项目社区:https://github.com/ccqpein/nats-cl

开源协议:

下载


README

Install

manually compile and use this repo

  1. (push "/path/to/nats-cl/" asdf:*central-registry*)
  2. (asdf:compile-system :nats-cl)
  3. (asdf:load-system :nats-cl)

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

  1. ;;; put this repo in ql:*local-project-directories*
  2. (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:

  1. (let* (sokt
  2. info
  3. )
  4. (multiple-value-setq (sokt info) (connect-nats-server "127.0.0.1")))

TODO

  • Leaf nodes
  • can change PING interval when it connect