node-minecraft-protocol icon indicating copy to clipboard operation
node-minecraft-protocol copied to clipboard

add connectionProvider option to createServer

Open rom1504 opened this issue 4 years ago • 2 comments

to support non tcp use cases

rom1504 avatar Mar 22 '21 19:03 rom1504

WebRTC should be a possible setting for this option, as it's the standard for inter-browser communication, a likely non-TCP use case.

redbrain avatar Mar 22 '21 23:03 redbrain

Yes this could be part of an example (using https://github.com/feross/simple-peer ) However nmp itself should not depend on webrtc and instead simply expose a connectionProvider option

rom1504 avatar Mar 22 '21 23:03 rom1504