More socket testing

This commit is contained in:
Rick Falkvinge
2017-01-12 20:46:34 +01:00
parent d3f482a9f1
commit 0f6d01e211
6 changed files with 39 additions and 10 deletions
+4
View File
@@ -8,6 +8,8 @@ using Mono.Unix;
using Mono.Unix.Native;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Swarmops.Logic.Communications;
using Swarmops.Logic.Communications.Payload;
using Swarmops.Logic.ExtensionMethods;
using WebSocketSharp.Server;
@@ -31,6 +33,8 @@ namespace Swarmops.Frontend.Socket
Console.WriteLine(" * Swarmops Frontend Socket Server starting up.");
OutboundComm.CreateNotification(null, NotificationResource.System_Startup_Frontend);
_socketServer = new WebSocketServer (12172); // TODO: Read from database
_socketServer.AddWebSocketService<MasterServices> ("/Master");
// _socketServer.KeepClean = false; // as per the author's recommendation - this may be bad in the long run