Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

@akiroz/thalamus

Package Overview
Dependencies
4
Maintainers
1
Versions
22
Issues
File Explorer

Advanced tools

@akiroz/thalamus

[![](https://img.shields.io/npm/v/@akiroz/thalamus)](https://www.npmjs.com/package/@akiroz/thalamus)

    0.2.3latest

Version published
Maintainers
1
Yearly downloads
2,704
increased by55.85%

Weekly downloads

Readme

Source

Thalamus

An opinionated application messaging framework based on MQTT.

Differences from plain MQTT

+ RPC support + Server redundancy / load-balancing - Guaranteed delivery (MQTT QoS 1 / 2)

Messages requiring acknowledgement must use RPC and applications are expected to implement their own retry mechanisms.

API

class Thalamus

  • constructor(serverOptList: MQTT.IClientOptions[])

  • thalamus.servers List of MQTT client objects

  • async publish(topic: string, payload: Uint8Array)

  • async subscribe(topic: string, handler: SubHandler)

  • async unsubscribe(topic: string, handler?: SubHandler)

  • async call(topic: string, params: Param = {}, opt = defaultOptions): Promise<Result>

  • async register(topic: string, handler: (param, topic) => Result)

  • thalamus.on("connect", (i) => {}) server i connected (i = 0-based index)

  • thalamus.on("close", (i) => {}) server i disconnected (i = 0-based index)

  • thalamus.on("error", (err, i) => {}) server i error (i = 0-based index)

FAQs

What is @akiroz&#x2F;thalamus?

[![](https:&#x2F;&#x2F;img.shields.io&#x2F;npm&#x2F;v&#x2F;@akiroz&#x2F;thalamus)](https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;@akiroz&#x2F;thalamus)

Is @akiroz&#x2F;thalamus popular?

The npm package @akiroz&#x2F;thalamus receives a total of 67 weekly downloads. As such, @akiroz&#x2F;thalamus popularity was classified as not popular.

Is @akiroz&#x2F;thalamus well maintained?

We found that @akiroz&#x2F;thalamus demonstrated a healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 10 May 2022
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc