Added socket to backend

This commit is contained in:
Rick Falkvinge
2017-02-18 01:35:11 +01:00
parent 41047098f1
commit edc98b054f
4 changed files with 85 additions and 1 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ namespace Swarmops.Frontend.Socket
OutboundComm.CreateNotification(null, NotificationResource.System_Startup_Frontend);
_socketServer = new WebSocketServer (12172); // TODO: Read from database
_socketServer = new WebSocketServer (SystemSettings.WebsocketPortFrontend);
_socketServer.AddWebSocketService<MasterServices> ("/Master");
// _socketServer.KeepClean = false; // as per the author's recommendation - this may be bad in the long run
_socketServer.Start();