cittadino

A simple PubSub framework using STOMP.

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License BSD2
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install cittadino
choosenim install cittadino
git clone https://github.com/makingspace/cittadino

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
cittadino - - - - - - -

Source

Repository https://github.com/makingspace/cittadino
Homepage https://github.com/makingspace/cittadino
Registry Source nimble_official

README

cittadino

cittadino is a simple, small library that implements a pubsub system over STOMP.

It exposes a single main object type, PubSub, with its constructor, newPubSub(), which provides two main procs: publishModelEvent() and subscribe(). These procedures take care of publishing and subscribing, respectively. Subscriber procedures can be registered with subscribe() to certain AMQP/STOMP-style topic patterns, and arbitrary JSON messages can be sent to routing keys with publishModelEvent().

In order process incoming events, call run() inside of a process. That process will loop and block, waiting for incoming messages. Any topics that match the patterns that were registered with subscribe() will have their messages passed to the handler procedures.

See the docs for more information.