Skip to content

Commit

Permalink
feat(websockets): add cloud.Endpoint for ws url (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekeren authored Feb 26, 2024
1 parent 4754884 commit b21e60e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions websockets/lib.w
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit b21e60e

Please sign in to comment.