-
Notifications
You must be signed in to change notification settings - Fork 182
Send Direct Message
sqrtofsaturn edited this page Apr 4, 2016
·
5 revisions
Sending a message from device to device creates a series of jobs in Meshblu Core.
Basic Rules:
- Only publish to Redis in
*Received
jobs -
Subscription*
jobs can only create otherSubscription*
jobs -
*Receieved
jobs can only create*Received
jobs
devices: ["B"]
payload: "HI"
meshblu:
whitelists:
message:
from: A: {}
A Device must explicitly subscribe to any message type it wants to receive in the Firehose.
emitterUuid: "B"
subscriberUuid: "B"
type: "message.received"
Device C
is subscribed to B
to get message.received
. DeliverSubscriptionMessageReceived
will look for any subscriptions where the emitterUuid
is B
and generate more DeliverSubscriptionMessageReceived
jobs.
meshblu:
whitelists:
message:
from: A: {}
received: C: {}
emitterUuid: "B"
subscriberUuid: "C"
type: "message.received"
Device D
is subscribed to A
to get message.sent
. DeliverSubscriptionMessageSent
will look for any subscriptions where the emitterUuid
is A
and generate more DeliverSubscriptionMessageReceived
jobs.
meshblu:
whitelists:
message:
sent: D: {}
emitterUuid: "A"
subscriberUuid: "D"
type: "message.sent"
emitterUuid: "D"
subscriberUuid: "D"
type: "message.received"