40ants-slynk - Utilities to start SLYNK if needed and to track active connections.
40ANTS-SLYNK ASDF System Details
Description: Utilities to start
SLYNKif needed and to track active connections.Licence: Unlicense
Author: Alexander Artemenko <svetlyak.40wt@gmail.com>
Homepage: https://40ants.com/slynk/
Bug tracker: https://github.com/40ants/slynk/issues
Source control: GIT
Depends on: 40ants-logging, global-vars, log4cl, slynk, slynk-macrostep, slynk-named-readtables
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 the following things:
Starts Slynk server in there is
SLYNK_PORTenv variable.Setup logging for connected Slynk connection. It uses
40ants-loggingsystem for configuration.If
FASL_DIRenv variable is set, then fasl files, produced during compilation, are written into this directory (mirroring the structure of sources) instead of being placed near the sources. This is useful when the server runs under another user or has a read-only filesystem.
API
Here we'll store all Slynk connections.
Use this function before starting the backend server.
If SLYNK_PORT environment variable is set, then this function
will create a Slynk server on that port and localhost interface.
To change an interface, set SLYNK_INTERFACE environment variable.
If FASL_DIR environment variable is set, then fasl files, produced
during compilation, will be written into that directory (mirroring
the structure of sources) instead of being placed near the sources.