feat: websockets

This commit is contained in:
2022-12-20 12:20:52 -08:00
parent ab85578ccf
commit a5a67963be
24 changed files with 276 additions and 69 deletions
+7 -2
View File
@@ -10,12 +10,17 @@ namespace Ragon.Relay
static void Main(string[] args)
{
var logger = LogManager.GetLogger("Ragon.Relay");
logger.Info("Relay Application");
var configuration = Configuration.Load("config.json");
var configuration = Configuration.Load("relay.config.json");
var relay = new Application(configuration);
relay.Start();
logger.Info("Started");
relay.Start();
Console.ReadKey();
relay.Stop();
logger.Info("Stopped");
}
+1 -1
View File
@@ -14,7 +14,7 @@
<None Update="NLog.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="config.json">
<None Update="relay.config.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
-12
View File
@@ -1,12 +0,0 @@
{
"key": "defaultkey",
"socket": "enet",
"protocol": "1.0.0",
"sendRate": 50,
"port": 4444,
"skipTimeout": 60,
"reconnectTimeout": 300,
"limitConnections": 4095,
"limitPlayersPerRoom": 20,
"limitRooms": 200
}
+10
View File
@@ -0,0 +1,10 @@
{
"serverKey": "defaultkey",
"serverType": "websocket",
"serverTickRate": 20,
"gameProtocol": "1.0.0",
"port": 5000,
"limitConnections": 4095,
"limitPlayersPerRoom": 20,
"limitRooms": 200
}