wasmboy icon indicating copy to clipboard operation
wasmboy copied to clipboard

Link Cable Emulation

Open torch2424 opened this issue 7 years ago • 11 comments

Look into Link Cable Emulation

Goal would to be have it done over WebRtc with a peer to peer connection, using something like simple-peer or PeerJs

torch2424 avatar Mar 20 '18 15:03 torch2424

GB Dev perspective:

http://gbdev.gg8.se/wiki/articles/Serial_Communication_(Link_Cable)_Tutorial

torch2424 avatar Apr 03 '18 03:04 torch2424

Hardware perspective:

http://gbdev.gg8.se/wiki/articles/Serial_Data_Transfer_(Link_Cable)

torch2424 avatar Apr 03 '18 03:04 torch2424

PlutoBoy has a link cable emulation: https://github.com/RossMeikleham/PlutoBoy

torch2424 avatar Apr 25 '18 07:04 torch2424

Our best bet is WebRTC. It provides a P2P like way to transfer data between two clients. It is also possible to.do serverless, by sending each other's signaling key through Email or some sort

https://github.com/cjb/serverless-webrtc

torch2424 avatar Sep 19 '18 09:09 torch2424

Here's another severless webrtc I found while out getting coffee 😄 https://github.com/owebio/serverless-webrtc-chat

torch2424 avatar Sep 19 '18 22:09 torch2424

Here's serverless WebRTC using QR codes:

https://github.com/AquiGorka/webrtc-qr

And a qr code reader:

https://github.com/schmich/instascan

torch2424 avatar Oct 12 '18 16:10 torch2424

https://peerjs.com/

I think we should go with that. They have a server already hosted for their service. And if it ever went down, we could simply roll our own real quick, and just change some values on the client 😄

Last thing I would check out: https://github.com/kgryte/awesome-peer-to-peer

torch2424 avatar Nov 04 '18 21:11 torch2424

Started some of this at: #229

torch2424 avatar Jan 13 '19 22:01 torch2424

how goes the progress on this?

FM1337 avatar Sep 14 '20 21:09 FM1337

@FM1337 I haven't started this beyond just mocking it out to get the game Alleyway working :o

That being said, looking back over this, seems like PeerJS is the way to go, so I just gotta find the time to do it :smile:

torch2424 avatar Sep 16 '20 16:09 torch2424

Would be great if functions to transfer data between clients are configurable.

symful avatar Aug 17 '23 13:08 symful