Thanks Ashley.
I managed to modify the files to make the connection work.
If anyone is interested here are the changes:
1. line 1
2. line 172:
//PlayerIO={
var PlayerIO = globalThis.PlayerIO={
3. line 556: //__pio_flashfallback_callback__ = function () {
var __pio_flashfallback_callback__=globalThis.__pio_flashfallback_callback__ = function () {
4. line 861:
//PlayerIOError = function (code, message, stack) {
var PlayerIOError =globalThis.PlayerIOError= function (code, message, stack) {
5. line 913
//PlayerIOErrorCode = {
var PlayerIOErrorCode= globalThis.PlayerIOErrorCode={
6 line 188:
//authenticate: function (gameId, connectionId, authenticationArguments, playerInsightSegments, successCallback, errorCallback) {
authenticate: window.myGlobalFunction = function (gameId, connectionId, authenticationArguments, playerInsightSegments, successCallback, errorCallback) {
7 line 2649:
//this.useSecureConnections = false;
this.useSecureConnections = true;