server - MusicDB Websocket Server

This module starts the MusicDB Websocket Server.

The start is done in the following steps:

  1. Initialize the GObject and GStreamer libraries

  2. Initialize the server by calling mdbapi.Initialize()

  3. Start the websocket server by calling mdbapi.StartWebSocketServer()

  4. Set SystemD status to READY=1

  5. 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