webwormhole icon indicating copy to clipboard operation
webwormhole copied to clipboard

allow clients to select slot

Open saljam opened this issue 5 years ago • 2 comments

The original implementation allowed the client to select an arbitrary slot. The signalling server still supports that.

That worked by optimistically assuming we're side A, sending the PAKE A message and if the slot is already taken throw that away and start again as B.

The uncertainty about which side a client is made me nervous and I never needed to pick my slot anyway, so I disabled this. I'm leaving this issue open to remind myself that if needed this can be brought back.

saljam avatar Apr 07 '20 01:04 saljam

Some more thoughts on this: we could allow clients to choose their own slots if they're over a certain length. Say 16 bytes, the length of a GUID.

If we then allow more than 2 peers on these long slots (by broadcasting each message to everyone else) this might facilitate using WebWormhole to establish generic multi-party webrtc connections.

saljam avatar May 10 '20 17:05 saljam

this might be a prerequisite for #14

saljam avatar Aug 06 '20 11:08 saljam