summaryrefslogtreecommitdiff
path: root/Ladybird/WebSocketClientManagerLadybird.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Ladybird/WebSocketClientManagerLadybird.cpp')
-rw-r--r--Ladybird/WebSocketClientManagerLadybird.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Ladybird/WebSocketClientManagerLadybird.cpp b/Ladybird/WebSocketClientManagerLadybird.cpp
index e059a73e4a..1a086dfcf6 100644
--- a/Ladybird/WebSocketClientManagerLadybird.cpp
+++ b/Ladybird/WebSocketClientManagerLadybird.cpp
@@ -6,6 +6,7 @@
*/
#include "WebSocketClientManagerLadybird.h"
+#include "WebSocketImplQt.h"
#include "WebSocketLadybird.h"
namespace Ladybird {
@@ -23,8 +24,10 @@ RefPtr<Web::WebSockets::WebSocketClientSocket> WebSocketClientManagerLadybird::c
WebSocket::ConnectionInfo connection_info(url);
connection_info.set_origin(origin);
- auto connection = WebSocketLadybird::create(WebSocket::WebSocket::create(move(connection_info)));
- return connection;
+ auto impl = adopt_ref(*new WebSocketImplQt);
+ auto web_socket = WebSocket::WebSocket::create(move(connection_info), move(impl));
+ web_socket->start();
+ return WebSocketLadybird::create(web_socket);
}
}