aws / aws/aws-lambda-go

APIGW struct missing fields?

Open
#405 0 comments 1 reaction 0 assignees View on GitHub
enhancement type/events
Dominant language
Go
Stars
3.8k
Forks
578
Avg merge
8h 18m
Merged PRs (30d)
1

Description

**Is your feature request related to a problem? Please describe.**

Hello! The websocket API request event context type [APIGatewayWebsocketProxyRequestContext](https://github.com/aws/aws-lambda-go/blob/main/events/apigw.go#L168) does not have fields for `disconnectStatusCode` and `disconnectReason` that are populated when the `$disconnect` route is hit, so this information is not available to the route integration.

![apigw](https://user-images.githubusercontent.com/25541381/139387227-3f071d4e-5a65-4e4f-9172-cb16d3c9da7e.png)

**Describe the solution you'd like**
The fields added to the struct so the data is available.

Thank you!

Contributor guide

Open the contributing guide

Research direction

Start at events/apigw.go around APIGatewayWebsocketProxyRequestContext and compare the $disconnect event data described in the issue. Add fields for disconnectStatusCode and disconnectReason so the values are available through the context passed to the route integration; done means both fields are represented in the struct.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, go
Domain
api
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.