| Namespace | http://www.mulesoft.org/schema/mule/pubnub |
|---|---|
| Schema Location | http://www.mulesoft.org/schema/mule/pubnub/1.0/mule-pubnub.xsd |
| Version | 1.0 |
| Minimum Mule Version | 3.2 |
PubNub is an Internet-Wide Messaging Service for Real-time Web and Mobile apps and games. PubNub is a massively scalable Real-time Bidirectional Messaging Service in the Cloud.
This connector supports version 3 of the PubNub REST API. PubNub is a freemium service where users get 5,000 messages per day for free but then have reasonable pricing plans for higher volume usage. For more information go to PubNub: http://pubnub.com| Configuration | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Configure an instance of this module
| |||||||||||
| Message Processors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Load history from a channel.
| |||||||||||
Send a json message to a channel.
| |||||||||||
Makes a blocking request to receive a message on a channel.
| |||||||||||
Get the Timestamp from PubNub Cloud.
| |||||||||||
| Message Sources | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Listen for a message on a channel.
| |||||||||||
To use the this module within a flow the namespace to the module must be included. The resulting flow will look similar to the following:
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:pubnub="http://www.mulesoft.org/schema/mule/pubnub"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/pubnub
http://www.mulesoft.org/schema/mule/pubnub/1.0/mule-pubnub.xsd">
<!-- here goes your flows and configuration elements -->
</mule>
This module is configured using the config element. This element must be placed outside of your flows and at the root of your Mule application. You can create as many configurations as you deem necesary as long as each carries its own name.
Each message processor, message source or transformer carries a config-ref attribute that allows the invoker to specify which configuration to use.
| Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Type | Name | Default Value | Description | Optional. Give a name to this configuration so it can be later referenced. | |||||||
| Your publish key that allows you to send data to the PubNub cloud | |||||||||||
| The secret key given to you when you created the account | |||||||||||
| false | Optional. Whether to use SSL or not when communicating with the PubNub cloud | ||||||||||
| Your subscribe key that allows you to send data to the PubNub cloud | |||||||||||
Load history from a channel.
INCLUDE_ERROR
| Optional. Specify which configuration to use. | ||
| Name. |
||
| History count response. |
||
| 1 | Optional. Specify how many times this operation can be retried automatically |
Send a json message to a channel.
INCLUDE_ERROR
| Optional. Specify which configuration to use. | ||
| Name to publish the message to |
||
| The message to publish |
||
| 1 | Optional. Specify how many times this operation can be retried automatically |
Makes a blocking request to receive a message on a channel.
INCLUDE_ERROR
| Optional. Specify which configuration to use. | ||
| Name to read from |
||
| Optional. How long to wait for a message. The value is expressed in milliseconds. specify for |
||
| 1 | Optional. Specify how many times this operation can be retried automatically |
Get the Timestamp from PubNub Cloud.
INCLUDE_ERROR
| Optional. Specify which configuration to use. | ||
| 1 | Optional. Specify how many times this operation can be retried automatically |
Listen for a message on a channel.
INCLUDE_ERROR
| Optional. Specify which configuration to use. | ||
| Name to listen on |
||
| Callback to execute when a message comes in
|
||
| 1 | Optional. Specify how many times this operation can be retried automatically |