socket icon indicating copy to clipboard operation
socket copied to clipboard

Messages are only sent in one direction after a peer restarts

Open garth opened this issue 1 year ago • 0 comments

Using https://github.com/garth/socket-editor start two peers

pnpm install -r
cd peer
pnpm start:ios

in a second terminal

cd peer
pnpm dev

click "Edit" in both clients and see that they are in sync.

close the macOS peer and start it again

pnpm dev

Notice that messages are now only sent in one direction, the iOS peer no longer receives any messages from the macOS peer.

Extensive console logs have been added to give a clear picture of peer interactions

If both peers are restarted then messages are again received by both peers.

What OS are you using (uname -a, or Windows version)?

Darwin Garths-MacBook-Pro.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 arm64

What version Socket Runtime are you using?

0.5.4 (97fa3f7c)
Installation path: /Users/garth/Projects/socket-editor/node_modules/.pnpm/@[email protected]/node_modules/@socketsupply/socket-darwin-arm64/

I also tried this on the latest master branch but the results are the same.

0.5.4 (ef7fb555)
Installation path: /Users/garth/.local/share/socket/

What programming language are you using (C/C++/Go/Rust)?

node --version
v20.11.0

What did you expect to see and what you saw instead?

The clients should be able to send messages in both directions after a peer is restarted.

garth avatar Jan 29 '24 23:01 garth