   flags: {
                url: window.location.origin,
            }
        });

        for (let name in gameHost.ports) {
            let port = gameHost.ports[name];

            if (name.match(/^send_/)) {
                let targetName = name.replace(/send_/, '');
                port.subscribe(function(msg) {
                    let payload = {
                        tag: targetName,
                        msg: msg
                    };

                    toGameServer.send(JSON.stringify(paylo