1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:58:12 +00:00

Base: Launch WebSocket at session start-up

This commit is contained in:
Lucas CHOLLET 2022-07-24 13:16:18 +02:00 committed by Linus Groh
parent ac7b0e69e5
commit e9e94ef3cc
4 changed files with 11 additions and 12 deletions

View file

@ -18,7 +18,7 @@ class WebSocket;
class WebSocketClient final
: public IPC::ConnectionToServer<WebSocketClientEndpoint, WebSocketServerEndpoint>
, public WebSocketClientEndpoint {
IPC_CLIENT_CONNECTION(WebSocketClient, "/tmp/portal/websocket"sv)
IPC_CLIENT_CONNECTION(WebSocketClient, "/tmp/user/%uid/portal/websocket"sv)
public:
RefPtr<WebSocket> connect(const URL&, String const& origin = {}, Vector<String> const& protocols = {}, Vector<String> const& extensions = {}, HashMap<String, String> const& request_headers = {});