mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-06 04:41:44 +02:00
add simple webserver
jsonrpc is available for HTTP post: http://<your-ip>:8080/jsonrpc for websockets: ws://<your-ip>:8080/jsonrpc
This commit is contained in:
parent
ade48cf5e4
commit
fa508eafba
4 changed files with 699 additions and 29 deletions
|
@ -179,7 +179,9 @@ std::pair<acceptor_ptr, acceptor_ptr> ControlServer::createAcceptors(size_t port
|
|||
|
||||
void ControlServer::start()
|
||||
{
|
||||
// TODO: should be possible to be disabled
|
||||
acceptor_tcp_ = createAcceptors(port_);
|
||||
// TODO: make port configurable, should be possible to be disabled
|
||||
acceptor_http_ = createAcceptors(8080);
|
||||
startAccept();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue