Socket
Book a DemoInstallSign in
Socket

cactusmq-react-native

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cactusmq-react-native

React Native client for CactusMQ.

latest
Source
npmnpm
Version
1.0.8
Version published
Maintainers
1
Created
Source

Example React Native client for CactusMQ

www.cactusmq.com | https://github.com/cactusmq

Setup:

npm i --save cactusmq-react-native

Import:

import CactusMQ from "cactusmq-react-native"

Usage:

this.cactusmq = new CactusMQ({ publishKey: ${CACTUSMQ_PUBKEY}, subscribeKey: ${CACTUSMQ_SUBKEY}, onMessage: eventText => { this.handleEventText(eventText); } });

this.cactusmq.subscribe("new-message");

Run curl publisher:

$ curl -d "topic=some-topic-name&message=This is my message." http://www.cactusmq.com/publish/${CACTUSMQ_PUBKEY};

Visit https://github.com/cactusmq for other ways to publish or subscribe to CactusMQ.

FAQs

Package last updated on 10 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.