From a7c028e13d830b5e797a40ceaa041c460fc9b405 Mon Sep 17 00:00:00 2001 From: Eyal Keren Date: Mon, 26 Feb 2024 15:54:38 +0200 Subject: [PATCH] feat(websockets): add cloud.Endpoint for ws url --- websockets/lib.w | 2 ++ 1 file changed, 2 insertions(+) diff --git a/websockets/lib.w b/websockets/lib.w index 67dc5937..c7287ede 100644 --- a/websockets/lib.w +++ b/websockets/lib.w @@ -1,4 +1,5 @@ bring util; +bring cloud; bring "./commons/api.w" as api; bring "./platform/awscdk.w" as awscdk; bring "./platform/tf-aws.w" as tfaws; @@ -26,6 +27,7 @@ pub class WebSocket impl api.IWebSocket { } else { throw "unsupported target {target}"; } + new cloud.Endpoint(this.url); } pub onConnect(handler: inflight(str): void): void {