onedayitwillmake / RealtimeMultiplayerNodeJs

Realtime Mutliplayer Game Engine using Node.js / websockets for HTML5 that uses a client-server approach in which the clients send only sampled input to the server
548 stars 112 forks source link

webRTC support / UDP #14

Open fyyyyy opened 9 years ago

fyyyyy commented 9 years ago

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

zuker commented 8 years ago

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!

onedayitwillmake commented 8 years ago

@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