Skip to content

ccqpein/nats-cl

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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