Garret Harp
08/12/2021, 7:03 PMnew WebSocketApi(this, 'WebSocketApi', {
routes: {
$connect: 'src/functions/actions/websocket/connect.handler'
}
})
And the lambda code is:
export const handler = (event: unknown) => {
console.log(event)
return {
statusCode: 200,
body: 'test'
}
}
It logs the event just fine, but every websocket just immediately disconnects.thdxr
08/12/2021, 7:07 PMthdxr
08/12/2021, 7:07 PMthdxr
08/12/2021, 7:09 PMasync
help?Garret Harp
08/12/2021, 7:11 PM