mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibWeb: Add WebSocket bindings
The WebSocket bindings match the original specification from the WHATWG living standard, but do not match the later update of the standard that involves FETCH. The FETCH update will be handled later since the changes would also affect XMLHttpRequest.
This commit is contained in:
parent
68bfb46a6f
commit
22413ef729
Notes:
sideshowbarker
2024-07-18 19:05:45 +09:00
Author: https://github.com/Dexesttp
Commit: 22413ef729
Pull-request: https://github.com/SerenityOS/serenity/pull/6610
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/linusg
16 changed files with 593 additions and 1 deletions
|
@ -24,6 +24,7 @@
|
|||
#include <LibGUI/TabWidget.h>
|
||||
#include <LibGUI/Window.h>
|
||||
#include <LibGfx/Bitmap.h>
|
||||
#include <LibWeb/HTML/WebSocket.h>
|
||||
#include <LibWeb/Loader/ContentFilter.h>
|
||||
#include <LibWeb/Loader/ResourceLoader.h>
|
||||
#include <stdio.h>
|
||||
|
@ -66,8 +67,9 @@ int main(int argc, char** argv)
|
|||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
// Connect to the ProtocolServer immediately so we can drop the "unix" pledge.
|
||||
// Connect to the ProtocolServer and the WebSocket service immediately so we can drop the "unix" pledge.
|
||||
Web::ResourceLoader::the();
|
||||
Web::HTML::WebSocketClientManager::the();
|
||||
|
||||
// Connect to LaunchServer immediately and let it know that we won't ask for anything other than opening
|
||||
// the user's downloads directory.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue