AWS Api Gateway websocket always reconnected
Open
Nobody has claimed this yet.
documentation
- Dominant language
- TypeScript
- Stars
- 63.2k
- Forks
- 10.3k
- Avg merge
- 11d 20h
- Merged PRs (30d)
- 2
Description
Hi!

const socket = io("wss://server.com", {
transports: ["websocket"],
path: "/",
});
Backend AWS Gateway API
When connected invoked lamda for $connection, but then reconnect again.
I used vue-native-websocket it`s ok.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the io(...) client configuration shown in the issue and reproduce the connection against AWS API Gateway using transports set to websocket and path "/". Compare the connection and reconnection behavior with vue-native-websocket, then verify whether the AWS $connection Lambda is invoked more than once and document the cause and expected single-connection behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, javascript
- Domain
- api, backend, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100