diff --git a/mopidy/frontends/http/data/index.html b/mopidy/frontends/http/data/index.html index c3a4199b..37885eef 100644 --- a/mopidy/frontends/http/data/index.html +++ b/mopidy/frontends/http/data/index.html @@ -3,65 +3,27 @@
This web server is a part of the music server Mopidy. To learn more - about Mopidy, please visit www.mopidy.com.
+ about Mopidy, please visit + www.mopidy.com.To see your own content here, change the setting - HTTP_SERVER_STATIC_DIR to point to the directory containing your - content. This can be used to host a web based Mopidy client here.
+To see your own content instead of this placeholder page, change the + setting HTTP_SERVER_STATIC_DIR to point to the directory + containing your static files. This can be used to host e.g. a pure + HTML/CSS/JavaScript Mopidy client.
-Even if you host your own content on the root of the web server, - you'll always have the following services available.
+If you replace this page with your own content, the Mopidy resources + at /mopidy/ will still be available.
Mopidy has a WebSocket endpoint at /mopidy/ws/. You can
- use WebSockets to get notified about events happening in Mopidy. The
- alternative would be to regularly poll the conventional web service for
- updates.
To connect to the endpoint from a browser with WebSocket support, - simply enter the following JavaScript code in the browser's console:
- -var ws = new WebSocket("ws://myhost:myport/mopidy/ws/');
-ws.onmessage = function (event) {
- console.log("Incoming message: ", event.data);
-};
-ws.send("Message to the server, ahoy!");
-
- Here you can see events arriving from Mopidy in real time:
- - -For more information, please refer to the Mopidy documentation at - docs.mopidy.com.
-