i got 'APIGatewayProxyHandlerV2' with a REST and H...
# help
e
i got 'APIGatewayProxyHandlerV2' with a REST and HTTP handler, but what about websockets?
a
Start of my handler:
Copy code
export const handler = async (event: APIGatewayProxyEvent) => {
  try {
    const connectionId = event.requestContext.connectionId!;
f
Thanks @Adam Fanello
@Ernie Francis did that work?
e
that did work. i had to use the "APIGatewayProxyHandler" (not V2) to get the correct typings for the websocket.
a
I think the new typings were added with HTTP APIs, which came after Websocket support was added and even though Websocket is technically part of v2. 🤷