Example #1
0
        public static void Start()
        {
            if (Running)
            {
                throw new Exception("Already Running");
            }
            Running = true;

            ProtocolManager.Listen(Server);

#if ML
            MelonLoader.MelonCoroutines.Start(Reader());
#else
            ExplorerCore.LogError("TCP Web Server not supported yet.");
            return;
#endif

            Server.Start();
            ExplorerCore.Log("Server Started");
        }
 private static void CompleteClientMutation(WebClient client, object resBuff, int tracker)
 {
     ProtocolManager.WriteMessage(client, (IMessage)resBuff, tracker, ProtocolManager.TrackerOrigin.Client, true);
 }