feat: websockets
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"serverKey": "defaultkey",
|
||||
"serverType": "websocket",
|
||||
"serverTickRate": 20,
|
||||
"gameProtocol": "1.0.0",
|
||||
"port": 5000,
|
||||
"limitConnections": 4095,
|
||||
"limitPlayersPerRoom": 20,
|
||||
"limitRooms": 200
|
||||
}
|
||||
Reference in New Issue
Block a user