40ants-slynk

2024-10-12

Utilities to start SLYNK if needed and to track active connections.

Upstream URL

github.com/40ants/slynk

Author

Alexander Artemenko <svetlyak.40wt@gmail.com>

License

Unlicense
README

40ants-slynk - Utilities to start SLYNK if needed and to track active connections.

40ANTS-SLYNK ASDF System Details

Installation

You can install this library from Quicklisp, but you want to receive updates quickly, then install it from Ultralisp.org:

(ql-dist:install-dist "http://dist.ultralisp.org/"
                      :prompt nil)
(ql:quickload :40ants-slynk)

Usage

This library provides a little helper, used in 40Ants webservices. it does two things:

  • Starts Slynk server in there is SLYNK_PORT env variable.
  • Setup logging for connected Slynk connection. It uses 40ants-logging system for configuration.

API

variable 40ants-slynk:*connections* nil

Here we'll store all Slynk connections.

function 40ants-slynk:start-slynk-if-needed

Use this function before starting the backend server.

If SLYNKPORT environment variable is set, then this function will create a Slynk server on that port and localhost interface. To change an interface, set SLYNKINTERFACE environment variable.


[generated by 40ANTS-DOC]

Dependencies (13)

  • 40ants-asdf-system
  • ci
  • doc
  • docs-builder
  • global-vars
  • log4cl
  • logging
  • named-readtables
  • pythonic-string-reader
  • rove
  • sly
  • sly-macrostep
  • sly-named-readtables
  • GitHub
  • Quicklisp