From c4bd604e17925fd2e9eda0f4c51393fcce745641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Thu, 10 Feb 2022 10:48:03 +0100 Subject: [PATCH] Port to libsoup3 With all apps and modules/plugins porting itself to libsoup3 we also need to do so. It would appear as a good idea to conditionally import "3.0" and fallback to "2.4" bindings here, but its not as loaded GStreamer plugins might use libsoup3 already and we cannot have both libsoup2 and libsoup3 in a single process. --- src/main.js | 2 +- src/webServer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 71f8a554..29c7e4e0 100644 --- a/src/main.js +++ b/src/main.js @@ -1,6 +1,6 @@ imports.gi.versions.Gdk = '4.0'; imports.gi.versions.Gtk = '4.0'; -imports.gi.versions.Soup = '2.4'; +imports.gi.versions.Soup = '3.0'; pkg.initGettext(); pkg.initFormat(); diff --git a/src/webServer.js b/src/webServer.js index 0cf3253c..2098dda7 100644 --- a/src/webServer.js +++ b/src/webServer.js @@ -107,7 +107,7 @@ class ClapperWebServer extends Soup.Server this.remove_handler('/'); } - _onWsConnection(server, connection) + _onWsConnection(server, msg, path, connection) { debug('new WebSocket connection');