jpsim / jpsim/PeerKit

Connection successful only 10% of the time

Open
#16 12 comments 0 reactions 0 assignees View on GitHub

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.