1.0.8 • Published 7 years ago

cactusmq-react-native v1.0.8

Weekly downloads
3
License
MIT
Repository
github
Last release
7 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

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago