Skip to content

[@types/aws-lambda] Support API Gateway websocket integration #32781

@loikg

Description

@loikg

WebSocket APIs in Amazon API Gateway have been announce recently (see here) and the documentation can be found here

I am new to Typescript and AWS thus why i am not making a pull request directly but i am willing to prepare one. From my understanding the documentation reference for the field in the API Gateway event can be found here.

For testing purpose i simply added connectionId and routeKey field to APIGatewayEventRequestContext interface like so:

export interface APIGatewayEventRequestContext {
    ...
    identity: {
        ...
    };
    connectionId ?: string;
    routeKey ?: string;
    ...
}

If i was to make a pull request is it the correct modification i should be doing and thus just add the remaining new fields to APIGatewayEventRequestContext as optional fields ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions