"text" : "use wildcards to subscribe to a whole range of topics"
}
}
, {
"box" : {
"id" : "obj-15",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 241.5, 385.0, 75.0, 20.0 ],
"text" : "publish a list"
}
}
, {
"box" : {
"id" : "obj-11",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 533.0, 305.0, 115.0, 22.0 ],
"text" : "unsubscribe /topic/#"
}
}
, {
"box" : {
"id" : "obj-9",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 189.5, 445.0, 154.0, 22.0 ],
"text" : "prepend publish 0 /topic/list"
}
}
, {
"box" : {
"id" : "obj-1",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 521.0, 278.0, 102.0, 22.0 ],
"text" : "subscribe /topic/#"
}
}
, {
"box" : {
"id" : "obj-42",
"linecount" : 5,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 356.0, 200.5, 147.0, 75.0 ],
"text" : "an exception are retained messages. you can test this by first send the retain message first and then subscribe."
}
}
, {
"box" : {
"id" : "obj-41",
"linecount" : 2,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 363.0, 469.0, 218.0, 34.0 ],
"text" : "clears the retained message under the specified topic"
}
}
, {
"box" : {
"id" : "obj-40",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 356.0, 504.0, 119.0, 22.0 ],
"text" : "publish 1 /topic/store"
}
}
, {
"box" : {
"id" : "obj-38",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 371.0, 305.0, 135.0, 22.0 ],
"text" : "unsubscribe /topic/store"
}
}
, {
"box" : {
"id" : "obj-37",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 356.0, 278.0, 122.0, 22.0 ],
"text" : "subscribe /topic/store"
}
}
, {
"box" : {
"id" : "obj-36",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 356.0, 171.0, 91.0, 22.0 ],
"text" : "print @popup 1"
}
}
, {
"box" : {
"id" : "obj-32",
"linecount" : 9,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 124.0, 5.0, 485.0, 131.0 ],
"text" : "telemersiveBus also gives the classical MQTT functionality, where you can subscribe and publish to specific topics. There are some specialites to keep in mind:\n\n1. topics are required to start with '/' in order to work.\n2. only Peers that have joined the room can receive messages from subscribed topics.\n\npublish <retained (int)> <topic (symbol)> <payload (list)>\nsubscribe <topic (symbol)> \nunsubscribe <topic (symbol)> "