Skip to content
Snippets Groups Projects
Commit c47182d6 authored by Sami Spets's avatar Sami Spets
Browse files

'get_cfg' and 'update_cfg' added to node

parent c8cce35d
No related branches found
No related tags found
No related merge requests found
Pipeline #15264 passed
......@@ -457,14 +457,24 @@ app.ws('/', (ws, req) => {
});
/**
* Gets config values for
*/
//p.bind("get_cfg", )
* Get configuration JSON values
*/
p.bind("get_cfg", (cb, uri) => {
let peer = uri_data[uri].peer
if(peer){
peer.rpc("get_cfg", cb, uri)
}
})
/**
* gets list of configurations from the C++
* Update certain URIs values
*/
//p.bind("update_cfg", )
p.bind("update_cfg", (uri, json) => {
let peer = uri_data[uri].peer
if(peer){
peer.send("update_cfg", uri, json)
}
})
// Register a new stream
p.bind("add_stream", (uri) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment