[web] Support libevent as WS server instead of libwebsockets

If libevent >= 2.2 is detected during configure and "websocket_port" == 0 in the config file, the libwebsocket implementation is disabled and instead the libevent http server offers the websocket connection. The connection to the websocket is then done with the path "/ws".
This commit is contained in:
Christian Meffert
2024-10-03 07:47:34 +02:00
committed by Alain Nussbaumer
parent fd322a2941
commit a3ab301cff
8 changed files with 408 additions and 30 deletions

View File

@@ -39,6 +39,7 @@ export default defineConfig({
server: {
proxy: {
'/api': { target },
'/ws': { target: target, ws: true },
'/artwork': { target },
'/stream.mp3': { target }
}