Ignore:
Timestamp:
Aug 11, 2021, 6:22:03 PM (3 years ago)
Author:
alloc
Message:

Web:

  • Added SSE (ServerSentEvents) subsystem
  • Added log endpoint to SSE. Less heavy weight and more responsive way of watching the server log
  • Bunch of refactoring
File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/MapRendering/API.cs

    r351 r367  
    44namespace AllocsFixes {
    55        public class API : IModApi {
     6                private Web webInstance;
     7               
    68                public void InitMod () {
    79                        ModEvents.GameStartDone.RegisterHandler (GameStartDone);
     
    1214                private void GameStartDone () {
    1315                        // ReSharper disable once ObjectCreationAsStatement
    14                         new Web ();
     16                        webInstance = new Web ();
    1517                        LogBuffer.Init ();
    1618
     
    2123
    2224                private void GameShutdown () {
     25                        webInstance.Shutdown ();
    2326                        MapRendering.MapRendering.Shutdown ();
    2427                }
Note: See TracChangeset for help on using the changeset viewer.