EdgeMultiplay is an open source multiplayer game server that works with EdgeMultiplay Unity Client. The server is built using NodeJS and we provide a ready made client written in C# Unity.
For more information on how to use the server, please refer to the server documentation here
- MobiledgeX Unity SDK
- EdgeMultiplay Unity Client
Download EdgeMultiplay Module from npm
npm install edge-multiplay
Example of Usage
const edgeMultiplay = require('edge-multiplay')() //you can specify your ports here see example.js
edgeMultiplay.wsServer.on('newConnection',(path, connection)=>{
// your logic goes here
// On success call
edgeMultiplay.addToLobby(connection)
// On failure call edgeMultiplay.rejectConnection(connection)
})
docker pull mobiledgexsamples/edge-multiplay
docker run -d -p 3000:3000 -p 7776:7776 -p 5000:5000/udp mobiledgexsamples/edge-multiplay
- In EdgeManager check Use Local Host Server
- Specify the Host IP Address
For more information on how to run the server locally, please refer to our setup guide on the MobiledgeX Developer Portal.
- For bug reports or contributions please check the github repo, and join the discord server