Connection successful only 10% of the time
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 867
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Description
I have set up PeerKit as per the example from the Cards Against app and have managed to get two devices to connect to each other.
However, this connection is only successful ~10% of the time. The other times, .onDisconnect is called right away. Is there any reason why this is happening, or am I doing something wrong?
Also, what is the procedure to attempt a reconnection after the connection is unsuccessful? Should I call .transceive again after creating a new Transceiver?
Contributor guide
No contributing guide indexed for this repository
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 Cards Against example and trace the connection lifecycle around .onDisconnect, .transceive, and creating a new Transceiver. Reproduce the intermittent connection failure, identify its cause, and establish the correct reconnection procedure; no specific file or test is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100