equal
deleted
inserted
replaced
1 # Introduction |
1 # Introduction |
2 |
2 |
3 This module lets you manage subscriptions to pubsub nodes via simple |
3 This module lets you manage subscriptions to pubsub nodes via simple |
4 chat messages. Subscriptions are always added based on bare JID. The |
4 chat messages. Subscriptions are always added based on bare JID. The |
5 `include_body` flag is enabled so that a plain text body version of events |
5 `include_body` flag is enabled so that a plain text body version of |
6 can be included, where supported. |
6 events can be included, where supported. |
7 |
7 |
8 # Configuring |
8 # Configuring |
9 |
9 |
10 ```lua |
10 ``` {.lua} |
11 Component "pubsub.example.com" "pubub" |
11 Component "pubsub.example.com" "pubub" |
12 modules_enabled = { |
12 modules_enabled = { |
13 "pubsub_text_interface", |
13 "pubsub_text_interface", |
14 } |
14 } |
15 ``` |
15 ``` |
19 The following commands are supported. Simply send a normal chat message |
19 The following commands are supported. Simply send a normal chat message |
20 to the PubSub component where this module is enabled. When subscribing |
20 to the PubSub component where this module is enabled. When subscribing |
21 or unsubscribing, be sure to replace `node` with the node you want to |
21 or unsubscribing, be sure to replace `node` with the node you want to |
22 subscribe to or unsubscribe from. |
22 subscribe to or unsubscribe from. |
23 |
23 |
24 - `help` - a help message, listing these commands |
24 - `help` - a help message, listing these commands |
25 - `list` - list available nodes |
25 - `list` - list available nodes |
26 - `subscribe node` - subscribe to a node |
26 - `subscribe node` - subscribe to a node |
27 - `unsubscribe node` - unsubscribe from a node |
27 - `unsubscribe node` - unsubscribe from a node |