RealtimeMultiplayerNodeJs icon indicating copy to clipboard operation
RealtimeMultiplayerNodeJs copied to clipboard

webRTC support / UDP

Open fyyyyy opened this issue 10 years ago • 2 comments

Hello

My understanding is that websockets run over TCP, therefore being much slower than webRTC which supports the UDP protocol. Typically realtime games use the UDP protocol instead of TCP, is there a chance to make this work in this library ?

Thanks

fyyyyy avatar Jul 27 '15 16:07 fyyyyy

Hi!

I think this project can easily be implemented with webRTC. If you're interested you can take a look at this project: https://github.com/zuker/webrtc_multiplayer_demo

Thanks!

zuker avatar Oct 12 '15 09:10 zuker

@fyyyyy you are completely correct. However, there are currently no plans to modify the project to support WebRTC.

The project uses Socket.io because it's easier to get up and running with, but i would be happy to open a PR to use something else

onedayitwillmake avatar Nov 07 '15 05:11 onedayitwillmake