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/Web/API/WebAPI.cs

    r351 r367  
    22using System.Text;
    33using AllocsFixes.JSON;
    4 using UnityEngine.Profiling;
    54
    65namespace AllocsFixes.NetConnections.Servers.Web.API {
     
    87                public readonly string Name;
    98
    10                 protected WebAPI () {
    11                         Name = GetType ().Name;
     9                protected WebAPI (string _name = null) {
     10                        Name = _name ?? GetType ().Name;
    1211                }
    1312
    1413#if ENABLE_PROFILER
    15                 private static readonly CustomSampler jsonSerializeSampler = CustomSampler.Create ("JSON_Serialize");
    16                 private static readonly CustomSampler netWriteSampler = CustomSampler.Create ("JSON_Write");
     14                private static readonly UnityEngine.Profiling.CustomSampler jsonSerializeSampler = UnityEngine.Profiling.CustomSampler.Create ("JSON_Serialize");
     15                private static readonly UnityEngine.Profiling.CustomSampler netWriteSampler = UnityEngine.Profiling.CustomSampler.Create ("JSON_Write");
    1716#endif
    1817
Note: See TracChangeset for help on using the changeset viewer.