1.0.8 • Published 8 years ago

cactusmq-react-native v1.0.8

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

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago