socketio / socketio/socket.io

AWS Api Gateway websocket always reconnected

Open
#3,727 0 comments 0 reactions 0 assignees View on GitHub

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!

DeepinScreenshot_выберите-область_20201212220207

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.