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.
This commit is contained in:
Rafał Dzięgiel
2022-02-10 10:48:03 +01:00
parent 83c0e3b598
commit c4bd604e17
2 changed files with 2 additions and 2 deletions

View File

@@ -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();

View File

@@ -107,7 +107,7 @@ class ClapperWebServer extends Soup.Server
this.remove_handler('/');
}
_onWsConnection(server, connection)
_onWsConnection(server, msg, path, connection)
{
debug('new WebSocket connection');