From 3cb30610e456e6d61286f5c3987e982058e9dbd6 Mon Sep 17 00:00:00 2001 From: Damiano Ruehl Date: Thu, 21 Nov 2019 20:57:26 +0100 Subject: [PATCH] fix WebRTC multiplayer Use the default https://peerjs.com/ server for the WebRTC connection. I've also added a random string to the connection id to make it unlikely that someone accidentally is using the same id... --- src/api/webrtc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/webrtc.js b/src/api/webrtc.js index ea16a91..856609f 100644 --- a/src/api/webrtc.js +++ b/src/api/webrtc.js @@ -11,8 +11,8 @@ import { buffer_reader, read_packet, write_packet, client_packet, server_packet, } }*/ -const PeerID = name => `diabloweb_${name}`; -const Options = {host: 'diablo.rivsoft.net', port: 443, secure: true}; +const PeerID = name => `diabloweb_dDv62yHQrZJP28tBEHL_${name}`; +const Options = {port: 443, secure: true}; const MAX_PLRS = 4; class webrtc_server {