Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
polamoros committed Jan 23, 2024
1 parent b1136b0 commit c35e1a2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions websockets/platform/tf-aws.w
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub class WebSocket_tfaws impl awsapi.IAwsWebSocket {
unsafeCast(inflight (event: awsapi.WebSocketAwsRequest): awsapi.WebSocketAwsResponse => {
if event.requestContext.routeKey == routeKey {
handler(event.requestContext.connectionId, {
headers: event.headers,
headers: event.requestContext.headers,
});
}
return {
Expand All @@ -79,12 +79,9 @@ pub class WebSocket_tfaws impl awsapi.IAwsWebSocket {
let onDisconnectFunction = new cloud.Function(
unsafeCast(inflight (event: awsapi.WebSocketAwsRequest): awsapi.WebSocketAwsResponse => {
if event.requestContext.routeKey == routeKey {
handler(
event.requestContext.connectionId,
{
headers: event.headers,
}
);
handler(event.requestContext.connectionId, {
headers: event.requestContext.headers,
});
}

return {
Expand Down

0 comments on commit c35e1a2

Please sign in to comment.