server - MusicDB Websocket Server¶
This module starts the MusicDB Websocket Server.
The start is done in the following steps:
Initialize the GObject and GStreamer libraries
Initialize the server by calling
mdbapi.Initialize()
Start the websocket server by calling
mdbapi.StartWebSocketServer()
Set SystemD status to
READY=1
Enter the event loop by running
mdbapi.Run()
Read MusicDB Websocket Server for details
Example
The recommended way to start and stop MusicDB is using SystemD:
systemctl start musicdb
systemctl stop musicdb