# Netplay

Netplay has been officially supported since version 3.1.5. Released November 27, 2022.

# To add to your site

  1. Set a game id in the javascript config
EJS_gameID = 1; //Id needs to be unique per game in your website!
  1. At the moment, netplay requires the old cores. To do this you must add this line to your code.
EJS_oldCores = true;

These 2 steps will add netplay to your website!

# To host your own server:

  1. Clone the EmulatorJS-netplay repository
git clone https://github.com/EmulatorJS/EmulatorJS-netplay.git
  1. Install nodejs dependencies
npm install
  1. start the server
npm run start

You can then set your netplay server with the EJS_netplayUrl setting.

EJS_netplayUrl = "URL HERE";