summaryrefslogtreecommitdiff
path: root/libs/surfaces/websockets/dispatcher.cc
diff options
context:
space:
mode:
authorLuciano Iam <lucianito@gmail.com>2020-04-14 22:58:44 +0200
committerRobin Gareus <robin@gareus.org>2020-04-17 20:15:10 +0200
commit50ba8dea96415f651b5173c017592dd46a2541ec (patch)
treec183a57cb0906f6465a48c9bb813d153bfe350bc /libs/surfaces/websockets/dispatcher.cc
parent612c71aa25a76b603ad1184a352f228817d1f820 (diff)
WebSockets: improve JS client and demo
add methods to callback.js automatically reconnect js client on disconnection mixer-demo do not recreate UI on reconnection NO-OP: indentation in message.js make client JS reconnection optional fix mixer-demo scrolling minor JS client refactor improve mixer-demo readability
Diffstat (limited to 'libs/surfaces/websockets/dispatcher.cc')
-rw-r--r--libs/surfaces/websockets/dispatcher.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/libs/surfaces/websockets/dispatcher.cc b/libs/surfaces/websockets/dispatcher.cc
index b497c24081..62f64268aa 100644
--- a/libs/surfaces/websockets/dispatcher.cc
+++ b/libs/surfaces/websockets/dispatcher.cc
@@ -29,13 +29,13 @@ using namespace ARDOUR;
#define NODE_METHOD_PAIR(x) (Node::x, &WebsocketsDispatcher::x##_handler)
WebsocketsDispatcher::NodeMethodMap
- WebsocketsDispatcher::_node_to_method = boost::assign::map_list_of
+ WebsocketsDispatcher::_node_to_method = boost::assign::map_list_of
NODE_METHOD_PAIR (tempo)
NODE_METHOD_PAIR (strip_gain)
- NODE_METHOD_PAIR (strip_pan)
- NODE_METHOD_PAIR (strip_mute)
- NODE_METHOD_PAIR (strip_plugin_enable)
- NODE_METHOD_PAIR (strip_plugin_param_value);
+ NODE_METHOD_PAIR (strip_pan)
+ NODE_METHOD_PAIR (strip_mute)
+ NODE_METHOD_PAIR (strip_plugin_enable)
+ NODE_METHOD_PAIR (strip_plugin_param_value);
void
WebsocketsDispatcher::dispatch (Client client, const NodeStateMessage& msg)
@@ -105,7 +105,6 @@ WebsocketsDispatcher::update_all_nodes (Client client)
val.push_back (std::string ("i"));
val.push_back (pd.lower);
val.push_back (pd.upper);
- val.push_back (pd.integer_step);
} else {
val.push_back (std::string ("d"));
val.push_back (pd.lower);