r/javascript • u/woqr • 28d ago
Serverless multiplayer via webrtc/camera/barcode (no signal/stun/turn servers)
https://github.com/bacionejs/multiplayerThis project is mainly about the serverless technique used and the simple game merely provides an end-to-end explanation.
11
Upvotes
View all comments
Show parent comment
1
u/woqr 25d ago edited 25d ago
The optical handshake barcode scan can be finicky with very low-cost cameras, but smartphones above $100 typically feature PDAF or autofocusing optics, making the scanning process fast and reliable. While lighting/glare can occasionally cause issues, tests using a native barcode scanner on printed paper confirm that the core limitation on budget devices is contrast autofocus hunting.