xash3d icon indicating copy to clipboard operation
xash3d copied to clipboard

Network multiplayer support in Emscripten build

Open kumikumi opened this issue 6 years ago • 1 comments

I tried LAN multiplayer between two computers using an Emscripten build, but couldn't see the host from the other computer. I couldn't find any servers on the Internet either.

I assume this is due to network multiplayer not being implemented yet. I saw this information somewhere but it could be outdated.

Has anyone looked at it yet? Do you think it will be a matter of "just implementing it", or will there be some major technical challenges to overcome?

kumikumi avatar Dec 18 '17 22:12 kumikumi

You cannot communicate browser with original xash3d server or with other browser directly via websockets. You may use websockifiy, wsproxy or server running under nodejs. You also may try use webrtc but I do not know how it works with emscripten. My browser does not seems to support webrtc at all and I not interested to implement it because enabling webrtc in browser is unsafe (site may know local addresses). But you can enable/implement test webrtc and make PR with needed changes.

mittorn avatar Dec 19 '17 10:12 mittorn