GithubHelp home page GithubHelp logo

Comments (5)

60013695 avatar 60013695 commented on May 14, 2024 1

How would I get a web socket server and put the code on there?

from emulatorjs.

allancoding avatar allancoding commented on May 14, 2024 1

It should work if my domain is available. Creating and playing I have not finished! Change the code on line 16459:
From:

_0x5cf2be = ['htt', 'ps://ws', '.emu', 'lat', 'or', 'js.co', 'm', '/', 'lis', 't?gam', 'e_id=', _0x17edbf['config']['gameId'], '&domain=', document['domain']]['join']('');

To:

_0x5cf2be = ['https://allancoding.000webhostapp.com/app/emjs.php?list=0&game_id=', _0x17edbf['config']['gameId'], '&domain=', document['domain']]['join']('');

from emulatorjs.

ethanaobrien avatar ethanaobrien commented on May 14, 2024

Assuming you have your own web socket server, then just replace the emulatorjs.com url

Found in line 16459 of the emulator.js file.

It would be helpful to include a log of the console and a screenshot of the networking tab

from emulatorjs.

ethanaobrien avatar ethanaobrien commented on May 14, 2024

I don't know anything about a web socket server. You'd have to do lots of research to make one.

from emulatorjs.

allancoding avatar allancoding commented on May 14, 2024

I make some code with php to get the file so now should show up on the available game in net-play:

<?php
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST');
header("Access-Control-Allow-Headers: X-Requested-With");
if(isset($_GET["list"])){
    if(isset($_GET["game_id"])){
        if(isset($_GET["domain"])){
            $url = "https://ws.emulatorjs.com/list?game_id=".$_GET["game_id"]."&domain=".$_GET["domain"];
            readfile($url); 
            die();
        }else{
            echo"Main ERR!";
        }
    }else{
        echo"Main ERR!";
    }
}else if(isset($_GET["io"])){
    if(isset($_GET["userid"])){
        if(isset($_GET["sessionid"])){
            if(isset($_GET["msgEvent"])){
                if(isset($_GET["socketCustomEvent"])){
                    if(isset($_GET["autoCloseEntireSession"])){
                        if(isset($_GET["maxParticipantsAllowed"])){
                            if(isset($_GET["transport"])){
                                if(isset($_GET["t"])){
                                    if(isset($_GET["extra"])){
                                        if(isset($_GET["EIO"])){
                                            $url1 = "https://ws.emulatorjs.com/socket.io/?userid=".$_GET["userid"]."&sessionid=".$_GET["sessionid"]."&msgEvent=".$_GET["msgEvent"]."&socketCustomEvent=".$_GET["socketCustomEvent"]."&autoCloseEntireSession=".$_GET["autoCloseEntireSession"]."&maxParticipantsAllowed=".$_GET["maxParticipantsAllowed"]."&extra=".$_GET["extra"]."&EIO=".$_GET["EIO"]."&transport=".$_GET["transport"]."&t=".$_GET["t"];
                                            readfile($url1); 
                                            die();
                                        }else{
                                            echo"Main ERR!";
                                        }
                                    }else{
                                        echo"Main ERR!";
                                    }
                                }else{
                                    echo"Main ERR!";
                                }
                            }else{
                                echo"Main ERR!";
                            }
                        }else{
                            echo"Main ERR!";
                        }    
                    }else{
                        echo"Main ERR!";
                    }
                }else{
                    echo"Main ERR!";
                }
            }else{
                echo"Main ERR!";
            }
        }else{
            echo"Main ERR!";
        }
    }else{
        echo"Main ERR!";
    }
}else{
    echo"Main ERR!";
}
?>

from emulatorjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.