1.0.8 • Published 6 years ago

cactusmq-react-native v1.0.8

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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.

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago