There's no local variant of the API Gateway v2 except for HTTP API's, there's no websocket support (yet). You'll need to emulate this yourself with a node Express server I'm afraid
Greedings I am Dimitrios Desyllas aka pc_magas.
I am a php software engineer in e-table.
I am interested in privacy enhancing technologies, cryptography and reverse engineering.
Location
Acharnes, Greece
Education
MSc at Digital Systems Security at Univercity Of Peireus
Pronouns
Yo Wazz up bro!
Work
Volunteer Sysadmin at ELLAK of Cyprus - open for opportunities.
At least how I can emulate the event that the websocket will trigger. I mean even though I cannot run locally websockets I can trigger lambda execution via:
sam local invoke ^Lambda_name^ --event event.json
So what should I place on event.json in order to emulate a $connect and $disconnect event that Api Gateway will trigger? Even if I use nodejs and websockets I will need to emulate these events but I have not idea how.
either capture the event in your logs when you've deployed the API Gateway Websocket with Lambda integration. OR search on google what the event structure is for a WebSocket Lambda integration.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
There's no local variant of the API Gateway v2 except for HTTP API's, there's no websocket support (yet). You'll need to emulate this yourself with a node Express server I'm afraid
At least how I can emulate the event that the websocket will trigger. I mean even though I cannot run locally websockets I can trigger lambda execution via:
So what should I place on
event.json
in order to emulate a$connect
and$disconnect
event that Api Gateway will trigger? Even if I use nodejs and websockets I will need to emulate these events but I have not idea how.either capture the event in your logs when you've deployed the API Gateway Websocket with Lambda integration. OR search on google what the event structure is for a WebSocket Lambda integration.