Comments (5)
How would I get a web socket server and put the code on there?
from emulatorjs.
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.
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.
I don't know anything about a web socket server. You'd have to do lots of research to make one.
from emulatorjs.
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)
- [Request] Add option to add your own BIOS in demo HOT 3
- [Bug] errors download 100% HOT 3
- [Request] Allow PSX core to set between Dualshock/Standard controller HOT 1
- [Request] Make canvas the exact size of the native resolution, and let us size it ourselves using css transforms. HOT 2
- [Bug] All NDS roms freeze after rom load HOT 8
- [enhancement] add 3D Anaglyph preset color Setting
- [Bug] emulator does not work with controllers that use axis for direction. HOT 5
- 7z files of arcade Rom are disabled in Fbneo? HOT 1
- [Bug] version 4.0.10 after, the NDS console pointer cannot be moved. (mobile) HOT 1
- Cheat screen with black background
- [enhancement] Mouse Controls? HOT 4
- Did you add the game speed control setting to EmulatorJS? and if so Where did you put it? HOT 1
- [Feature-MirrorMode] Add mirror screen for head-to-head 2 or 4 players on big tablet touchscreen
- [Bug] "Start Creating" button not working in code editor
- [Bug] Degraded performance on mobile browsers since version 4.0.10 HOT 2
- [Bug] Impossible to Download the "the default fileset" HOT 3
- EmulatorJS V3 HOT 2
- Do we have Docker?
- new MAME cores
- Bug in smsplus emulator - genesis_plus_gx worked fine HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emulatorjs.