@proteinjs/server 3.1.12 → 3.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.1.14](https://github.com/proteinjs/server/compare/@proteinjs/server@3.1.13...@proteinjs/server@3.1.14) (2026-08-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * HMR slot hygiene — +100 port scheme and visibility-gated connections ([8409a69](https://github.com/proteinjs/server/commit/8409a693aac3dfed5e2ddf7f024ff717f4affd35))
12
+
13
+
14
+
15
+
16
+
17
+ ## [3.1.13](https://github.com/proteinjs/server/compare/@proteinjs/server@3.1.12...@proteinjs/server@3.1.13) (2026-08-05)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * HMR event stream serves from its own origin — dev tabs no longer exhaust the app origin's connection pool ([128bf23](https://github.com/proteinjs/server/commit/128bf2370c6840acc15a94c3f8a2891b05c920df))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [3.1.10](https://github.com/proteinjs/server/compare/@proteinjs/server@3.1.9...@proteinjs/server@3.1.10) (2026-07-21)
7
29
 
8
30
  **Note:** Version bump only for package @proteinjs/server
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Brent Bahry
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -33,7 +33,7 @@ require("react-helmet");
33
33
  require("socket.io");
34
34
  require("typescript");
35
35
  /** Generate Source Graph */
36
- var sourceGraph = "{\"options\":{\"directed\":true,\"multigraph\":false,\"compound\":false},\"nodes\":[{\"v\":\"@proteinjs/server/NodeGlobalDataStorage\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"NodeGlobalDataStorage\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa2/packages/proteinjs/packages/server/packages/server/src/NodeGlobalDataStorage.ts\",\"qualifiedName\":\"@proteinjs/server/NodeGlobalDataStorage\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"HOOK_INITIALIZED\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":true,\"visibility\":\"private\"},{\"name\":\"GLOBAL_DATA\",\"type\":{\"packageName\":\"@proteinjs/server\",\"name\":\"{ [id: string]: GlobalData }\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server/{ [id: string]: GlobalData }\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":true,\"visibility\":\"private\"},{\"name\":\"environment\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[{\"name\":\"setData\",\"returnType\":null,\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"parameters\":[{\"name\":\"data\",\"type\":{\"packageName\":\"@proteinjs/server-api\",\"name\":\"GlobalData\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/GlobalData\",\"typeParameters\":null,\"directParents\":null}}]},{\"name\":\"getData\",\"returnType\":{\"packageName\":\"@proteinjs/server-api\",\"name\":\"GlobalData\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/GlobalData\",\"typeParameters\":null,\"directParents\":null},\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"parameters\":[]},{\"name\":\"initHook\",\"returnType\":null,\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"private\",\"parameters\":[]}],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/server-api\",\"name\":\"GlobalDataStorage\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/GlobalDataStorage\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/server-api/GlobalDataStorage\"},{\"v\":\"@proteinjs/server/NodeSessionDataStorage\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"NodeSessionDataStorage\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa2/packages/proteinjs/packages/server/packages/server/src/NodeSessionDataStorage.ts\",\"qualifiedName\":\"@proteinjs/server/NodeSessionDataStorage\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"HOOK_INITIALIZED\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":true,\"visibility\":\"private\"},{\"name\":\"SESSION_DATA\",\"type\":{\"packageName\":\"@proteinjs/server\",\"name\":\"{ [id: string]: SessionData }\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server/{ [id: string]: SessionData }\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":true,\"visibility\":\"private\"},{\"name\":\"environment\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[{\"name\":\"setData\",\"returnType\":null,\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"parameters\":[{\"name\":\"data\",\"type\":{\"packageName\":\"@proteinjs/server-api\",\"name\":\"SessionData\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/SessionData\",\"typeParameters\":null,\"directParents\":null}}]},{\"name\":\"getData\",\"returnType\":{\"packageName\":\"@proteinjs/server-api\",\"name\":\"SessionData\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/SessionData\",\"typeParameters\":null,\"directParents\":null},\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"parameters\":[]},{\"name\":\"initHook\",\"returnType\":null,\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"private\",\"parameters\":[]}],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/server-api\",\"name\":\"SessionDataStorage\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/SessionDataStorage\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/server-api/SessionDataStorage\"},{\"v\":\"@proteinjs/server/ExtendedIncomingMessage\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"ExtendedIncomingMessage\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa2/packages/proteinjs/packages/server/packages/server/src/SocketIOServerRepo.ts\",\"qualifiedName\":\"@proteinjs/server/ExtendedIncomingMessage\",\"properties\":[{\"name\":\"sessionID\",\"type\":{\"packageName\":\"\",\"name\":\"string\",\"filePath\":null,\"qualifiedName\":\"/string\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":true,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"},{\"name\":\"user\",\"type\":{\"packageName\":\"\",\"name\":\"string\",\"filePath\":null,\"qualifiedName\":\"/string\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":true,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"http\",\"name\":\"IncomingMessage\",\"filePath\":null,\"qualifiedName\":\"http/IncomingMessage\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"http/IncomingMessage\"},{\"v\":\"@proteinjs/server/ExtendedSocket\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"ExtendedSocket\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa2/packages/proteinjs/packages/server/packages/server/src/SocketIOServerRepo.ts\",\"qualifiedName\":\"@proteinjs/server/ExtendedSocket\",\"properties\":[{\"name\":\"request\",\"type\":{\"packageName\":\"@proteinjs/server\",\"name\":\"ExtendedIncomingMessage\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server/ExtendedIncomingMessage\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"socket.io\",\"name\":\"Socket\",\"filePath\":null,\"qualifiedName\":\"socket.io/Socket\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"socket.io/Socket\"},{\"v\":\"@proteinjs/server/environmentCache\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"environmentCache\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa2/packages/proteinjs/packages/server/packages/server/src/envCache.ts\",\"qualifiedName\":\"@proteinjs/server/environmentCache\",\"type\":{\"packageName\":\"\",\"name\":\"GlobalDataCache<Env>\",\"filePath\":null,\"qualifiedName\":\"/GlobalDataCache<Env>\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/server-api\",\"name\":\"GlobalDataCache\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/GlobalDataCache\",\"typeParameters\":[\"@proteinjs/server-api/Env\"],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/server-api/GlobalDataCache\"},{\"v\":\"@proteinjs/server/healthCheck\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"healthCheck\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa2/packages/proteinjs/packages/server/packages/server/src/routes/healthCheck.ts\",\"qualifiedName\":\"@proteinjs/server/healthCheck\",\"type\":{\"packageName\":\"@proteinjs/server-api\",\"name\":\"Route\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/Route\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/server-api\",\"name\":\"Route\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/Route\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/server-api/Route\"}],\"edges\":[{\"v\":\"@proteinjs/server/NodeGlobalDataStorage\",\"w\":\"@proteinjs/server-api/GlobalDataStorage\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/server/NodeSessionDataStorage\",\"w\":\"@proteinjs/server-api/SessionDataStorage\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/server/ExtendedIncomingMessage\",\"w\":\"http/IncomingMessage\",\"value\":\"extends interface\"},{\"v\":\"@proteinjs/server/ExtendedSocket\",\"w\":\"socket.io/Socket\",\"value\":\"extends interface\"},{\"v\":\"@proteinjs/server/environmentCache\",\"w\":\"@proteinjs/server-api/GlobalDataCache\",\"value\":\"has type\"},{\"v\":\"@proteinjs/server/healthCheck\",\"w\":\"@proteinjs/server-api/Route\",\"value\":\"has type\"}]}";
36
+ var sourceGraph = "{\"options\":{\"directed\":true,\"multigraph\":false,\"compound\":false},\"nodes\":[{\"v\":\"@proteinjs/server/NodeGlobalDataStorage\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"NodeGlobalDataStorage\",\"filePath\":\"/home/runner/work/server/server/packages/server/src/NodeGlobalDataStorage.ts\",\"qualifiedName\":\"@proteinjs/server/NodeGlobalDataStorage\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"HOOK_INITIALIZED\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":true,\"visibility\":\"private\"},{\"name\":\"GLOBAL_DATA\",\"type\":{\"packageName\":\"@proteinjs/server\",\"name\":\"{ [id: string]: GlobalData }\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server/{ [id: string]: GlobalData }\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":true,\"visibility\":\"private\"},{\"name\":\"environment\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[{\"name\":\"setData\",\"returnType\":null,\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"parameters\":[{\"name\":\"data\",\"type\":{\"packageName\":\"@proteinjs/server-api\",\"name\":\"GlobalData\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/GlobalData\",\"typeParameters\":null,\"directParents\":null}}]},{\"name\":\"getData\",\"returnType\":{\"packageName\":\"@proteinjs/server-api\",\"name\":\"GlobalData\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/GlobalData\",\"typeParameters\":null,\"directParents\":null},\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"parameters\":[]},{\"name\":\"initHook\",\"returnType\":null,\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"private\",\"parameters\":[]}],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/server-api\",\"name\":\"GlobalDataStorage\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/GlobalDataStorage\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/server-api/GlobalDataStorage\"},{\"v\":\"@proteinjs/server/NodeSessionDataStorage\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"NodeSessionDataStorage\",\"filePath\":\"/home/runner/work/server/server/packages/server/src/NodeSessionDataStorage.ts\",\"qualifiedName\":\"@proteinjs/server/NodeSessionDataStorage\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"HOOK_INITIALIZED\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":true,\"visibility\":\"private\"},{\"name\":\"SESSION_DATA\",\"type\":{\"packageName\":\"@proteinjs/server\",\"name\":\"{ [id: string]: SessionData }\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server/{ [id: string]: SessionData }\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":true,\"visibility\":\"private\"},{\"name\":\"environment\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[{\"name\":\"setData\",\"returnType\":null,\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"parameters\":[{\"name\":\"data\",\"type\":{\"packageName\":\"@proteinjs/server-api\",\"name\":\"SessionData\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/SessionData\",\"typeParameters\":null,\"directParents\":null}}]},{\"name\":\"getData\",\"returnType\":{\"packageName\":\"@proteinjs/server-api\",\"name\":\"SessionData\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/SessionData\",\"typeParameters\":null,\"directParents\":null},\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"parameters\":[]},{\"name\":\"initHook\",\"returnType\":null,\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"private\",\"parameters\":[]}],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/server-api\",\"name\":\"SessionDataStorage\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/SessionDataStorage\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/server-api/SessionDataStorage\"},{\"v\":\"@proteinjs/server/ExtendedIncomingMessage\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"ExtendedIncomingMessage\",\"filePath\":\"/home/runner/work/server/server/packages/server/src/SocketIOServerRepo.ts\",\"qualifiedName\":\"@proteinjs/server/ExtendedIncomingMessage\",\"properties\":[{\"name\":\"sessionID\",\"type\":{\"packageName\":\"\",\"name\":\"string\",\"filePath\":null,\"qualifiedName\":\"/string\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":true,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"},{\"name\":\"user\",\"type\":{\"packageName\":\"\",\"name\":\"string\",\"filePath\":null,\"qualifiedName\":\"/string\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":true,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"http\",\"name\":\"IncomingMessage\",\"filePath\":null,\"qualifiedName\":\"http/IncomingMessage\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"http/IncomingMessage\"},{\"v\":\"@proteinjs/server/ExtendedSocket\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"ExtendedSocket\",\"filePath\":\"/home/runner/work/server/server/packages/server/src/SocketIOServerRepo.ts\",\"qualifiedName\":\"@proteinjs/server/ExtendedSocket\",\"properties\":[{\"name\":\"request\",\"type\":{\"packageName\":\"@proteinjs/server\",\"name\":\"ExtendedIncomingMessage\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server/ExtendedIncomingMessage\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"socket.io\",\"name\":\"Socket\",\"filePath\":null,\"qualifiedName\":\"socket.io/Socket\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"socket.io/Socket\"},{\"v\":\"@proteinjs/server/environmentCache\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"environmentCache\",\"filePath\":\"/home/runner/work/server/server/packages/server/src/envCache.ts\",\"qualifiedName\":\"@proteinjs/server/environmentCache\",\"type\":{\"packageName\":\"\",\"name\":\"GlobalDataCache<Env>\",\"filePath\":null,\"qualifiedName\":\"/GlobalDataCache<Env>\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/server-api\",\"name\":\"GlobalDataCache\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/GlobalDataCache\",\"typeParameters\":[\"@proteinjs/server-api/Env\"],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/server-api/GlobalDataCache\"},{\"v\":\"@proteinjs/server/healthCheck\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"healthCheck\",\"filePath\":\"/home/runner/work/server/server/packages/server/src/routes/healthCheck.ts\",\"qualifiedName\":\"@proteinjs/server/healthCheck\",\"type\":{\"packageName\":\"@proteinjs/server-api\",\"name\":\"Route\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/Route\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/server-api\",\"name\":\"Route\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/Route\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/server-api/Route\"}],\"edges\":[{\"v\":\"@proteinjs/server/NodeGlobalDataStorage\",\"w\":\"@proteinjs/server-api/GlobalDataStorage\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/server/NodeSessionDataStorage\",\"w\":\"@proteinjs/server-api/SessionDataStorage\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/server/ExtendedIncomingMessage\",\"w\":\"http/IncomingMessage\",\"value\":\"extends interface\"},{\"v\":\"@proteinjs/server/ExtendedSocket\",\"w\":\"socket.io/Socket\",\"value\":\"extends interface\"},{\"v\":\"@proteinjs/server/environmentCache\",\"w\":\"@proteinjs/server-api/GlobalDataCache\",\"value\":\"has type\"},{\"v\":\"@proteinjs/server/healthCheck\",\"w\":\"@proteinjs/server-api/Route\",\"value\":\"has type\"}]}";
37
37
  /** Generate Source Links */
38
38
  var NodeGlobalDataStorage_1 = require("../src/NodeGlobalDataStorage");
39
39
  var NodeSessionDataStorage_1 = require("../src/NodeSessionDataStorage");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../generated/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;;;;;;;;;;;;;;AAEpC,4BAA0B;AAC1B,6BAA2B;AAC3B,iCAA+B;AAC/B,iCAA+B;AAC/B,gCAA8B;AAC9B,uBAAqB;AACrB,yBAAuB;AACvB,kBAAgB;AAChB,mBAAiB;AACjB,2BAAyB;AACzB,oBAAkB;AAClB,0BAAwB;AACxB,mBAAiB;AACjB,iBAAe;AACf,wBAAsB;AACtB,qBAAmB;AACnB,sBAAoB;AAGpB,4BAA4B;AAE5B,IAAM,WAAW,GAAG,o4RAAo4R,CAAC;AAGz5R,4BAA4B;AAE5B,sEAAqE;AACrE,wEAAuE;AACvE,4CAAmD;AACnD,yDAAwD;AAExD,IAAM,WAAW,GAAG;IACnB,yCAAyC,EAAE,6CAAqB;IAChE,0CAA0C,EAAE,+CAAsB;IAClE,oCAAoC,EAAE,2BAAgB;IACtD,+BAA+B,EAAE,yBAAW;CAC5C,CAAC;AAGF,kCAAkC;AAElC,oDAAyD;AACzD,6BAAgB,CAAC,KAAK,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAGjD,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../generated/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;;;;;;;;;;;;;;AAEpC,4BAA0B;AAC1B,6BAA2B;AAC3B,iCAA+B;AAC/B,iCAA+B;AAC/B,gCAA8B;AAC9B,uBAAqB;AACrB,yBAAuB;AACvB,kBAAgB;AAChB,mBAAiB;AACjB,2BAAyB;AACzB,oBAAkB;AAClB,0BAAwB;AACxB,mBAAiB;AACjB,iBAAe;AACf,wBAAsB;AACtB,qBAAmB;AACnB,sBAAoB;AAGpB,4BAA4B;AAE5B,IAAM,WAAW,GAAG,gqRAAgqR,CAAC;AAGrrR,4BAA4B;AAE5B,sEAAqE;AACrE,wEAAuE;AACvE,4CAAmD;AACnD,yDAAwD;AAExD,IAAM,WAAW,GAAG;IACnB,yCAAyC,EAAE,6CAAqB;IAChE,0CAA0C,EAAE,+CAAsB;IAClE,oCAAoC,EAAE,2BAAgB;IACtD,+BAA+B,EAAE,yBAAW;CAC5C,CAAC;AAGF,kCAAkC;AAElC,oDAAyD;AACzD,6BAAgB,CAAC,KAAK,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAGjD,2CAAyB"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Dev-only webpack entry that VISIBILITY-GATES the HMR event stream: only visible tabs hold
3
+ * an SSE connection. Each dev tab's hot-update stream occupies one of the browser's 6
4
+ * HTTP/1.1 connection slots to the HMR origin for as long as the tab lives, so accumulated
5
+ * hidden tabs (agent-driven panes especially) can exhaust the pool and starve newly visible
6
+ * tabs of live reload. Closing the stream while hidden frees the slot; catch-up on
7
+ * re-connect is free because webpack-hot-middleware's server publishes its latest build
8
+ * stats ('sync') to every new subscriber, and the stock client hot-applies from that.
9
+ *
10
+ * This file is compiled by the normal package build and injected by absolute dist path as a
11
+ * webpack entry AHEAD of webpack-hot-middleware/client (see createWebpackConfigOverlay), so
12
+ * the EventSource patch below is installed before the client connects. It executes inside
13
+ * the browser bundle: keep it free of imports and Node globals (`process` in particular —
14
+ * webpack's DefinePlugin rewrites `process.env` references).
15
+ */
16
+ /**
17
+ * Drop-in for the EventSource the HMR client holds. The client keeps its instance for the
18
+ * page lifetime, so a plain EventSource can't be closed and reopened on visibility changes
19
+ * without the client seeing a dead connection; this gate owns the underlying native
20
+ * connection and creates/destroys it as the tab shows/hides, while the client's handler
21
+ * assignments (onopen/onerror/onmessage — the only surface webpack-hot-middleware/client
22
+ * uses, plus close()) keep working across recreations because they live here, not on the
23
+ * connection.
24
+ */
25
+ export declare class VisibilityGatedEventSource {
26
+ private readonly url;
27
+ onopen: ((event: Event) => unknown) | null;
28
+ onerror: ((event: Event) => unknown) | null;
29
+ onmessage: ((event: MessageEvent) => unknown) | null;
30
+ private source;
31
+ private closed;
32
+ constructor(url: string);
33
+ close(): void;
34
+ get readyState(): number;
35
+ private readonly handleVisibilityChange;
36
+ private connect;
37
+ private disconnect;
38
+ }
39
+ //# sourceMappingURL=VisibilityGatedEventSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VisibilityGatedEventSource.d.ts","sourceRoot":"","sources":["../../src/VisibilityGatedEventSource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;GAQG;AACH,qBAAa,0BAA0B;IAQzB,OAAO,CAAC,QAAQ,CAAC,GAAG;IAPhC,MAAM,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC,GAAG,IAAI,CAAQ;IAClD,OAAO,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC,GAAG,IAAI,CAAQ;IACnD,SAAS,EAAE,CAAC,CAAC,KAAK,EAAE,YAAY,KAAK,OAAO,CAAC,GAAG,IAAI,CAAQ;IAE5D,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,MAAM,CAAS;gBAEM,GAAG,EAAE,MAAM;IASxC,KAAK,IAAI,IAAI;IAMb,IAAI,UAAU,IAAI,MAAM,CAMvB;IAED,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAMrC;IAEF,OAAO,CAAC,OAAO;IAUf,OAAO,CAAC,UAAU;CAMnB"}
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ /**
3
+ * Dev-only webpack entry that VISIBILITY-GATES the HMR event stream: only visible tabs hold
4
+ * an SSE connection. Each dev tab's hot-update stream occupies one of the browser's 6
5
+ * HTTP/1.1 connection slots to the HMR origin for as long as the tab lives, so accumulated
6
+ * hidden tabs (agent-driven panes especially) can exhaust the pool and starve newly visible
7
+ * tabs of live reload. Closing the stream while hidden frees the slot; catch-up on
8
+ * re-connect is free because webpack-hot-middleware's server publishes its latest build
9
+ * stats ('sync') to every new subscriber, and the stock client hot-applies from that.
10
+ *
11
+ * This file is compiled by the normal package build and injected by absolute dist path as a
12
+ * webpack entry AHEAD of webpack-hot-middleware/client (see createWebpackConfigOverlay), so
13
+ * the EventSource patch below is installed before the client connects. It executes inside
14
+ * the browser bundle: keep it free of imports and Node globals (`process` in particular —
15
+ * webpack's DefinePlugin rewrites `process.env` references).
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.VisibilityGatedEventSource = void 0;
19
+ /**
20
+ * Drop-in for the EventSource the HMR client holds. The client keeps its instance for the
21
+ * page lifetime, so a plain EventSource can't be closed and reopened on visibility changes
22
+ * without the client seeing a dead connection; this gate owns the underlying native
23
+ * connection and creates/destroys it as the tab shows/hides, while the client's handler
24
+ * assignments (onopen/onerror/onmessage — the only surface webpack-hot-middleware/client
25
+ * uses, plus close()) keep working across recreations because they live here, not on the
26
+ * connection.
27
+ */
28
+ var VisibilityGatedEventSource = /** @class */ (function () {
29
+ function VisibilityGatedEventSource(url) {
30
+ var _this = this;
31
+ this.url = url;
32
+ this.onopen = null;
33
+ this.onerror = null;
34
+ this.onmessage = null;
35
+ this.source = null;
36
+ this.closed = false;
37
+ this.handleVisibilityChange = function () {
38
+ if (document.visibilityState === 'hidden') {
39
+ _this.disconnect();
40
+ }
41
+ else if (!_this.source) {
42
+ _this.connect();
43
+ }
44
+ };
45
+ document.addEventListener('visibilitychange', this.handleVisibilityChange);
46
+ // Hidden at construction (the client re-inits after its own disconnect timeout): stay
47
+ // parked with no connection until the tab becomes visible.
48
+ if (document.visibilityState === 'visible') {
49
+ this.connect();
50
+ }
51
+ }
52
+ VisibilityGatedEventSource.prototype.close = function () {
53
+ this.closed = true;
54
+ document.removeEventListener('visibilitychange', this.handleVisibilityChange);
55
+ this.disconnect();
56
+ };
57
+ Object.defineProperty(VisibilityGatedEventSource.prototype, "readyState", {
58
+ get: function () {
59
+ if (this.closed) {
60
+ return 2; // CLOSED
61
+ }
62
+ // Parked-while-hidden reads as CONNECTING: not closed, will connect on visibility.
63
+ return this.source ? this.source.readyState : 0;
64
+ },
65
+ enumerable: false,
66
+ configurable: true
67
+ });
68
+ VisibilityGatedEventSource.prototype.connect = function () {
69
+ var _this = this;
70
+ var source = new nativeEventSource(this.url);
71
+ // Forward through the gate's handler slots so handlers the client assigned once keep
72
+ // firing on every recreated connection.
73
+ source.onopen = function (event) { return _this.onopen && _this.onopen(event); };
74
+ source.onerror = function (event) { return _this.onerror && _this.onerror(event); };
75
+ source.onmessage = function (event) { return _this.onmessage && _this.onmessage(event); };
76
+ this.source = source;
77
+ };
78
+ VisibilityGatedEventSource.prototype.disconnect = function () {
79
+ if (this.source) {
80
+ this.source.close();
81
+ this.source = null;
82
+ }
83
+ };
84
+ return VisibilityGatedEventSource;
85
+ }());
86
+ exports.VisibilityGatedEventSource = VisibilityGatedEventSource;
87
+ var hmrUrlMarker = '__webpack_hmr';
88
+ var nativeEventSource;
89
+ // Install the patch at module load (this entry precedes the HMR client in the bundle).
90
+ // Only the HMR stream URL is gated; every other EventSource on the page is untouched.
91
+ (function () {
92
+ if (typeof window === 'undefined' || !window.EventSource || typeof document.visibilityState !== 'string') {
93
+ return; // no browser, no EventSource, or no Page Visibility API — leave native behavior alone
94
+ }
95
+ nativeEventSource = window.EventSource;
96
+ function PatchedEventSource(url, init) {
97
+ return (String(url).indexOf(hmrUrlMarker) !== -1
98
+ ? new VisibilityGatedEventSource(String(url))
99
+ : new nativeEventSource(url, init));
100
+ }
101
+ // Non-HMR instances are genuine natives; sharing the native prototype keeps their
102
+ // `instanceof EventSource` true, and the state constants ride along for code that reads
103
+ // them off the global.
104
+ PatchedEventSource.prototype = nativeEventSource.prototype;
105
+ PatchedEventSource.CONNECTING = nativeEventSource.CONNECTING;
106
+ PatchedEventSource.OPEN = nativeEventSource.OPEN;
107
+ PatchedEventSource.CLOSED = nativeEventSource.CLOSED;
108
+ window.EventSource = PatchedEventSource;
109
+ })();
110
+ //# sourceMappingURL=VisibilityGatedEventSource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VisibilityGatedEventSource.js","sourceRoot":"","sources":["../../src/VisibilityGatedEventSource.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH;;;;;;;;GAQG;AACH;IAQE,oCAA6B,GAAW;QAAxC,iBAOC;QAP4B,QAAG,GAAH,GAAG,CAAQ;QAPxC,WAAM,GAAuC,IAAI,CAAC;QAClD,YAAO,GAAuC,IAAI,CAAC;QACnD,cAAS,GAA8C,IAAI,CAAC;QAEpD,WAAM,GAAuB,IAAI,CAAC;QAClC,WAAM,GAAG,KAAK,CAAC;QAyBN,2BAAsB,GAAG;YACxC,IAAI,QAAQ,CAAC,eAAe,KAAK,QAAQ,EAAE;gBACzC,KAAI,CAAC,UAAU,EAAE,CAAC;aACnB;iBAAM,IAAI,CAAC,KAAI,CAAC,MAAM,E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EAAE,CAAC"}
@@ -192,7 +192,12 @@ function initializeHotReloading(app, config) {
192
192
  var webpack = appRequire('webpack');
193
193
  var webpackDevMiddleware = appRequire('webpack-dev-middleware');
194
194
  var webpackHotMiddleware = appRequire('webpack-hot-middleware');
195
- var devConfig = createWebpackConfigOverlay(config, webpack, appRequire);
195
+ // Same port resolution start() uses (SERVER_PORT wins), +100 — the stream's own origin.
196
+ // +1 would collide with a sibling workspace: local workspaces run their apps on
197
+ // consecutive ports (3002, 3004, ...); +100 maps 3002→3102, 3004→3104, clear of all.
198
+ var appPort = process.env.SERVER_PORT ? parseInt(process.env.SERVER_PORT) : config.port ? config.port : 3000;
199
+ var hmrPort = Number(process.env.HMR_PORT) || appPort + 100;
200
+ var devConfig = createWebpackConfigOverlay(config, webpack, appRequire, hmrPort);
196
201
  var compiler = webpack(devConfig);
197
202
  // Every completed compile is recorded (for the `?v=<hash>` script-tag stamp + /dev/build-info)
198
203
  // and logged, so "which build is this page running?" is answerable instead of guessable.
@@ -218,7 +223,29 @@ function initializeHotReloading(app, config) {
218
223
  headers: { 'Cache-Control': 'no-cache' },
219
224
  });
220
225
  app.use(devMiddleware);
221
- app.use(webpackHotMiddleware(compiler));
226
+ // The HMR EVENT STREAM lives on its OWN ORIGIN (port + 100, or HMR_PORT), never the app's.
227
+ // Each open dev tab holds one persistent SSE connection for hot updates, and SSE counts
228
+ // against Chrome's 6-connections-per-origin HTTP/1.1 limit — with the stream on the app
229
+ // origin, ~6 accumulated tabs (agent-driven panes accumulate them fast) silently exhausted
230
+ // the pool and EVERY new fetch from ANY tab stalled forever in the browser queue (verified
231
+ // live 2026-08-01: a stalled service POST completed the instant two idle tabs closed; it
232
+ // silently dropped a chat send). On a separate origin the streams pool against their own
233
+ // 6-slot budget: past ~6 tabs, a background tab's LIVE-RELOAD degrades (its stream queues
234
+ // until a slot frees) but app requests are untouched — the failure mode this layer must
235
+ // never have. HTTP/2 (no per-origin cap) was rejected: browsers require TLS for h2, and a
236
+ // local cert-trust story is a far bigger footprint than one extra dev-only listener.
237
+ var hmrMiddleware = webpackHotMiddleware(compiler);
238
+ var hmrServer = (0, http_1.createServer)(function (request, response) {
239
+ // Dev-only sibling: SSE GETs from the app origin — permissive CORS is correct here.
240
+ response.setHeader('Access-Control-Allow-Origin', '*');
241
+ hmrMiddleware(request, response, function () {
242
+ response.statusCode = 404;
243
+ response.end();
244
+ });
245
+ });
246
+ hmrServer.listen(hmrPort, function () {
247
+ logger.info({ message: "HMR event stream listening on its own origin", obj: { hmrPort: hmrPort } });
248
+ });
222
249
  app.get('/dev/build-info', function (request, response) {
223
250
  var _a;
224
251
  response.json((_a = DevClientBuild_1.DevClientBuild.get()) !== null && _a !== void 0 ? _a : {});
@@ -233,7 +260,7 @@ function makeAppRequire(nodeModulesPath) {
233
260
  // Any file under the consumer's node_modules works as a base for createRequire
234
261
  return (0, module_1.createRequire)(path_1.default.join(nodeModulesPath, '__app_require__.js'));
235
262
  }
236
- function createWebpackConfigOverlay(config, webpack, appRequire) {
263
+ function createWebpackConfigOverlay(config, webpack, appRequire, hmrPort) {
237
264
  var _a;
238
265
  // Load the consumer webpack config (CommonJS). If it exports a function, call with { mode: 'development' }.
239
266
  var consumerExport = require(config.hotClientBuilds.webpackConfigPath);
@@ -242,9 +269,19 @@ function createWebpackConfigOverlay(config, webpack, appRequire) {
242
269
  devConfig.mode = 'development';
243
270
  // Ensure the compiler context points at the consumer app root (helps some plugins)
244
271
  devConfig.context = devConfig.context || path_1.default.dirname(config.hotClientBuilds.nodeModulesPath);
245
- // Use an ABSOLUTE path to the HMR client from the consumer's node_modules
272
+ // Use an ABSOLUTE path to the HMR client from the consumer's node_modules. The `path` query
273
+ // points the client's EventSource at the stream's OWN ORIGIN (see the sibling listener in
274
+ // initializeHotReloading) so dev tabs never spend app-origin connection slots on SSE.
275
+ // The visibility gate (compiled by this package's own build) must come FIRST: its
276
+ // EventSource patch has to be installed before the HMR client connects, so only VISIBLE
277
+ // tabs hold a stream slot (hidden tabs drop theirs and re-sync on reconnect).
278
+ var visibilityGateAbs = require.resolve('./VisibilityGatedEventSource');
246
279
  var hmrClientAbs = appRequire.resolve('webpack-hot-middleware/client');
247
- devConfig.entry = { app: [hmrClientAbs, config.staticContent.appEntryPath] };
280
+ // reload=true: when hot-apply can't complete (typically a tab that sat hidden across a
281
+ // server restart — the new process has none of the old hot-update manifests), the client
282
+ // falls back to a full reload instead of warning and silently serving a stale bundle.
283
+ var hmrClientEntry = "".concat(hmrClientAbs, "?path=http://localhost:").concat(hmrPort, "/__webpack_hmr&reload=true");
284
+ devConfig.entry = { app: [visibilityGateAbs, hmrClientEntry, config.staticContent.appEntryPath] };
248
285
  // Ensure bundles are served from memory at /static/, and set a concrete path for plugins that read it.
249
286
  devConfig.output = __assign(__assign({}, (baseConfig.output || {})), { publicPath: staticContentPath, path: config.staticContent.staticContentDir });
250
287
  // Make loaders (e.g., ts-loader) resolve from the consumer's node_modules
@@ -1 +1 @@
1
- {"version":3,"file":"startServer.js","sourceRoot":"","sources":["../../src/startServer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAwB;AACxB,iCAAuC;AACvC,oDAA8B;AAC9B,oEAA6C;AAC7C,gEAAyC;AACzC,4DAAqC;AACrC,sDAAgC;AAChC,kEAA2C;AAC3C,6BAA4C;AAC5C,oDAQ+B;AAC/B,2CAAgE;AAChE,4CAA2C;AAC3C,2DAA0E;AAC1E,mDAAkD;AAElD,IAAM,iBAAiB,GAAG,UAAU,CAAC;AACrC,IAAM,MAAM,GAAG,IAAI,eAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC9C,IAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;AACtB,IAAM,MAAM,GAAG,IAAI,aAAU,CAAC,GAAG,CAAC,CAAC;AAEnC,SAAsB,WAAW,CAAC,MAAoB;;;;;wBACpD,qBAAM,eAAe,CAAC,sB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;IAC9F,wFAAwF;IACxF,wFAAwF;IACxF,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE;QAClB,IAAM,QAAQ,GAAG;YACf,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE;gBAC3B,MAAM,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC,CAAC;aAC1D;YAED,MAAM,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,oCAA6B,IAAI,CAAE,EAAE,CAAC,CAAC;QAChE,CAAC,CAAC;QAEF,IAAI,gBAAgB,EAAE;YACpB,MAAM,CAAC,IAAI,CAAC;gBACV,OAAO,EAAE,4BAAqB,IAAI,yEAAsE;aACzG,CAAC,CAAC;YACH,KAAK,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACrC,OAAO;SACR;QAED,QAAQ,EAAE,CAAC;IACb,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -18,11 +18,10 @@ import 'react-helmet';
18
18
  import 'socket.io';
19
19
  import 'typescript';
20
20
 
21
-
22
21
  /** Generate Source Graph */
23
22
 
24
- const sourceGraph = "{\"options\":{\"directed\":true,\"multigraph\":false,\"compound\":false},\"nodes\":[{\"v\":\"@proteinjs/server/NodeGlobalDataStorage\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"NodeGlobalDataStorage\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa2/packages/proteinjs/packages/server/packages/server/src/NodeGlobalDataStorage.ts\",\"qualifiedName\":\"@proteinjs/server/NodeGlobalDataStorage\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"HOOK_INITIALIZED\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":true,\"visibility\":\"private\"},{\"name\":\"GLOBAL_DATA\",\"type\":{\"packageName\":\"@proteinjs/server\",\"name\":\"{ [id: string]: GlobalData }\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server/{ [id: string]: GlobalData }\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":true,\"visibility\":\"private\"},{\"name\":\"environment\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[{\"name\":\"setData\",\"returnType\":null,\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"parameters\":[{\"name\":\"data\",\"type\":{\"packageName\":\"@proteinjs/server-api\",\"name\":\"GlobalData\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/GlobalData\",\"typeParameters\":null,\"directParents\":null}}]},{\"name\":\"getData\",\"returnType\":{\"packageName\":\"@proteinjs/server-api\",\"name\":\"GlobalData\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/GlobalData\",\"typeParameters\":null,\"directParents\":null},\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"parameters\":[]},{\"name\":\"initHook\",\"returnType\":null,\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"private\",\"parameters\":[]}],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/server-api\",\"name\":\"GlobalDataStorage\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/GlobalDataStorage\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/server-api/GlobalDataStorage\"},{\"v\":\"@proteinjs/server/NodeSessionDataStorage\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"NodeSessionDataStorage\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa2/packages/proteinjs/packages/server/packages/server/src/NodeSessionDataStorage.ts\",\"qualifiedName\":\"@proteinjs/server/NodeSessionDataStorage\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"HOOK_INITIALIZED\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":true,\"visibility\":\"private\"},{\"name\":\"SESSION_DATA\",\"type\":{\"packageName\":\"@proteinjs/server\",\"name\":\"{ [id: string]: SessionData }\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server/{ [id: string]: SessionData }\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":true,\"visibility\":\"private\"},{\"name\":\"environment\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[{\"name\":\"setData\",\"returnType\":null,\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"parameters\":[{\"name\":\"data\",\"type\":{\"packageName\":\"@proteinjs/server-api\",\"name\":\"SessionData\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/SessionData\",\"typeParameters\":null,\"directParents\":null}}]},{\"name\":\"getData\",\"returnType\":{\"packageName\":\"@proteinjs/server-api\",\"name\":\"SessionData\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/SessionData\",\"typeParameters\":null,\"directParents\":null},\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"parameters\":[]},{\"name\":\"initHook\",\"returnType\":null,\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"private\",\"parameters\":[]}],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/server-api\",\"name\":\"SessionDataStorage\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/SessionDataStorage\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/server-api/SessionDataStorage\"},{\"v\":\"@proteinjs/server/ExtendedIncomingMessage\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"ExtendedIncomingMessage\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa2/packages/proteinjs/packages/server/packages/server/src/SocketIOServerRepo.ts\",\"qualifiedName\":\"@proteinjs/server/ExtendedIncomingMessage\",\"properties\":[{\"name\":\"sessionID\",\"type\":{\"packageName\":\"\",\"name\":\"string\",\"filePath\":null,\"qualifiedName\":\"/string\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":true,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"},{\"name\":\"user\",\"type\":{\"packageName\":\"\",\"name\":\"string\",\"filePath\":null,\"qualifiedName\":\"/string\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":true,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"http\",\"name\":\"IncomingMessage\",\"filePath\":null,\"qualifiedName\":\"http/IncomingMessage\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"http/IncomingMessage\"},{\"v\":\"@proteinjs/server/ExtendedSocket\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"ExtendedSocket\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa2/packages/proteinjs/packages/server/packages/server/src/SocketIOServerRepo.ts\",\"qualifiedName\":\"@proteinjs/server/ExtendedSocket\",\"properties\":[{\"name\":\"request\",\"type\":{\"packageName\":\"@proteinjs/server\",\"name\":\"ExtendedIncomingMessage\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server/ExtendedIncomingMessage\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"socket.io\",\"name\":\"Socket\",\"filePath\":null,\"qualifiedName\":\"socket.io/Socket\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"socket.io/Socket\"},{\"v\":\"@proteinjs/server/environmentCache\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"environmentCache\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa2/packages/proteinjs/packages/server/packages/server/src/envCache.ts\",\"qualifiedName\":\"@proteinjs/server/environmentCache\",\"type\":{\"packageName\":\"\",\"name\":\"GlobalDataCache<Env>\",\"filePath\":null,\"qualifiedName\":\"/GlobalDataCache<Env>\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/server-api\",\"name\":\"GlobalDataCache\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/GlobalDataCache\",\"typeParameters\":[\"@proteinjs/server-api/Env\"],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/server-api/GlobalDataCache\"},{\"v\":\"@proteinjs/server/healthCheck\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"healthCheck\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa2/packages/proteinjs/packages/server/packages/server/src/routes/healthCheck.ts\",\"qualifiedName\":\"@proteinjs/server/healthCheck\",\"type\":{\"packageName\":\"@proteinjs/server-api\",\"name\":\"Route\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/Route\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/server-api\",\"name\":\"Route\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/Route\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/server-api/Route\"}],\"edges\":[{\"v\":\"@proteinjs/server/NodeGlobalDataStorage\",\"w\":\"@proteinjs/server-api/GlobalDataStorage\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/server/NodeSessionDataStorage\",\"w\":\"@proteinjs/server-api/SessionDataStorage\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/server/ExtendedIncomingMessage\",\"w\":\"http/IncomingMessage\",\"value\":\"extends interface\"},{\"v\":\"@proteinjs/server/ExtendedSocket\",\"w\":\"socket.io/Socket\",\"value\":\"extends interface\"},{\"v\":\"@proteinjs/server/environmentCache\",\"w\":\"@proteinjs/server-api/GlobalDataCache\",\"value\":\"has type\"},{\"v\":\"@proteinjs/server/healthCheck\",\"w\":\"@proteinjs/server-api/Route\",\"value\":\"has type\"}]}";
25
-
23
+ const sourceGraph =
24
+ '{"options":{"directed":true,"multigraph":false,"compound":false},"nodes":[{"v":"@proteinjs/server/NodeGlobalDataStorage","value":{"packageName":"@proteinjs/server","name":"NodeGlobalDataStorage","filePath":"/home/runner/work/server/server/packages/server/src/NodeGlobalDataStorage.ts","qualifiedName":"@proteinjs/server/NodeGlobalDataStorage","isAbstract":false,"isStatic":false,"visibility":"public","properties":[{"name":"HOOK_INITIALIZED","type":null,"isOptional":false,"isAbstract":false,"isStatic":true,"visibility":"private"},{"name":"GLOBAL_DATA","type":{"packageName":"@proteinjs/server","name":"{ [id: string]: GlobalData }","filePath":null,"qualifiedName":"@proteinjs/server/{ [id: string]: GlobalData }","typeParameters":null,"directParents":null},"isOptional":false,"isAbstract":false,"isStatic":true,"visibility":"private"},{"name":"environment","type":null,"isOptional":false,"isAbstract":false,"isStatic":false,"visibility":"public"}],"methods":[{"name":"setData","returnType":null,"isAsync":false,"isOptional":false,"isAbstract":false,"isStatic":false,"visibility":"public","parameters":[{"name":"data","type":{"packageName":"@proteinjs/server-api","name":"GlobalData","filePath":null,"qualifiedName":"@proteinjs/server-api/GlobalData","typeParameters":null,"directParents":null}}]},{"name":"getData","returnType":{"packageName":"@proteinjs/server-api","name":"GlobalData","filePath":null,"qualifiedName":"@proteinjs/server-api/GlobalData","typeParameters":null,"directParents":null},"isAsync":false,"isOptional":false,"isAbstract":false,"isStatic":false,"visibility":"public","parameters":[]},{"name":"initHook","returnType":null,"isAsync":false,"isOptional":false,"isAbstract":false,"isStatic":false,"visibility":"private","parameters":[]}],"typeParameters":[],"directParentInterfaces":[{"packageName":"@proteinjs/server-api","name":"GlobalDataStorage","filePath":null,"qualifiedName":"@proteinjs/server-api/GlobalDataStorage","properties":[],"methods":[],"typeParameters":[],"directParents":[]}],"directParentClasses":[],"sourceType":2}},{"v":"@proteinjs/server-api/GlobalDataStorage"},{"v":"@proteinjs/server/NodeSessionDataStorage","value":{"packageName":"@proteinjs/server","name":"NodeSessionDataStorage","filePath":"/home/runner/work/server/server/packages/server/src/NodeSessionDataStorage.ts","qualifiedName":"@proteinjs/server/NodeSessionDataStorage","isAbstract":false,"isStatic":false,"visibility":"public","properties":[{"name":"HOOK_INITIALIZED","type":null,"isOptional":false,"isAbstract":false,"isStatic":true,"visibility":"private"},{"name":"SESSION_DATA","type":{"packageName":"@proteinjs/server","name":"{ [id: string]: SessionData }","filePath":null,"qualifiedName":"@proteinjs/server/{ [id: string]: SessionData }","typeParameters":null,"directParents":null},"isOptional":false,"isAbstract":false,"isStatic":true,"visibility":"private"},{"name":"environment","type":null,"isOptional":false,"isAbstract":false,"isStatic":false,"visibility":"public"}],"methods":[{"name":"setData","returnType":null,"isAsync":false,"isOptional":false,"isAbstract":false,"isStatic":false,"visibility":"public","parameters":[{"name":"data","type":{"packageName":"@proteinjs/server-api","name":"SessionData","filePath":null,"qualifiedName":"@proteinjs/server-api/SessionData","typeParameters":null,"directParents":null}}]},{"name":"getData","returnType":{"packageName":"@proteinjs/server-api","name":"SessionData","filePath":null,"qualifiedName":"@proteinjs/server-api/SessionData","typeParameters":null,"directParents":null},"isAsync":false,"isOptional":false,"isAbstract":false,"isStatic":false,"visibility":"public","parameters":[]},{"name":"initHook","returnType":null,"isAsync":false,"isOptional":false,"isAbstract":false,"isStatic":false,"visibility":"private","parameters":[]}],"typeParameters":[],"directParentInterfaces":[{"packageName":"@proteinjs/server-api","name":"SessionDataStorage","filePath":null,"qualifiedName":"@proteinjs/server-api/SessionDataStorage","properties":[],"methods":[],"typeParameters":[],"directParents":[]}],"directParentClasses":[],"sourceType":2}},{"v":"@proteinjs/server-api/SessionDataStorage"},{"v":"@proteinjs/server/ExtendedIncomingMessage","value":{"packageName":"@proteinjs/server","name":"ExtendedIncomingMessage","filePath":"/home/runner/work/server/server/packages/server/src/SocketIOServerRepo.ts","qualifiedName":"@proteinjs/server/ExtendedIncomingMessage","properties":[{"name":"sessionID","type":{"packageName":"","name":"string","filePath":null,"qualifiedName":"/string","typeParameters":null,"directParents":null},"isOptional":true,"isAbstract":false,"isStatic":false,"visibility":"public"},{"name":"user","type":{"packageName":"","name":"string","filePath":null,"qualifiedName":"/string","typeParameters":null,"directParents":null},"isOptional":true,"isAbstract":false,"isStatic":false,"visibility":"public"}],"methods":[],"typeParameters":[],"directParents":[{"packageName":"http","name":"IncomingMessage","filePath":null,"qualifiedName":"http/IncomingMessage","properties":[],"methods":[],"typeParameters":[],"directParents":[]}],"sourceType":3}},{"v":"http/IncomingMessage"},{"v":"@proteinjs/server/ExtendedSocket","value":{"packageName":"@proteinjs/server","name":"ExtendedSocket","filePath":"/home/runner/work/server/server/packages/server/src/SocketIOServerRepo.ts","qualifiedName":"@proteinjs/server/ExtendedSocket","properties":[{"name":"request","type":{"packageName":"@proteinjs/server","name":"ExtendedIncomingMessage","filePath":null,"qualifiedName":"@proteinjs/server/ExtendedIncomingMessage","typeParameters":null,"directParents":null},"isOptional":false,"isAbstract":false,"isStatic":false,"visibility":"public"}],"methods":[],"typeParameters":[],"directParents":[{"packageName":"socket.io","name":"Socket","filePath":null,"qualifiedName":"socket.io/Socket","properties":[],"methods":[],"typeParameters":[],"directParents":[]}],"sourceType":3}},{"v":"socket.io/Socket"},{"v":"@proteinjs/server/environmentCache","value":{"packageName":"@proteinjs/server","name":"environmentCache","filePath":"/home/runner/work/server/server/packages/server/src/envCache.ts","qualifiedName":"@proteinjs/server/environmentCache","type":{"packageName":"","name":"GlobalDataCache<Env>","filePath":null,"qualifiedName":"/GlobalDataCache<Env>","typeParameters":[],"directParents":[{"packageName":"@proteinjs/server-api","name":"GlobalDataCache","filePath":null,"qualifiedName":"@proteinjs/server-api/GlobalDataCache","typeParameters":["@proteinjs/server-api/Env"],"directParents":null}]},"isExported":true,"isConst":true,"sourceType":0}},{"v":"@proteinjs/server-api/GlobalDataCache"},{"v":"@proteinjs/server/healthCheck","value":{"packageName":"@proteinjs/server","name":"healthCheck","filePath":"/home/runner/work/server/server/packages/server/src/routes/healthCheck.ts","qualifiedName":"@proteinjs/server/healthCheck","type":{"packageName":"@proteinjs/server-api","name":"Route","filePath":null,"qualifiedName":"@proteinjs/server-api/Route","typeParameters":[],"directParents":[{"packageName":"@proteinjs/server-api","name":"Route","filePath":null,"qualifiedName":"@proteinjs/server-api/Route","typeParameters":[],"directParents":null}]},"isExported":true,"isConst":true,"sourceType":0}},{"v":"@proteinjs/server-api/Route"}],"edges":[{"v":"@proteinjs/server/NodeGlobalDataStorage","w":"@proteinjs/server-api/GlobalDataStorage","value":"implements interface"},{"v":"@proteinjs/server/NodeSessionDataStorage","w":"@proteinjs/server-api/SessionDataStorage","value":"implements interface"},{"v":"@proteinjs/server/ExtendedIncomingMessage","w":"http/IncomingMessage","value":"extends interface"},{"v":"@proteinjs/server/ExtendedSocket","w":"socket.io/Socket","value":"extends interface"},{"v":"@proteinjs/server/environmentCache","w":"@proteinjs/server-api/GlobalDataCache","value":"has type"},{"v":"@proteinjs/server/healthCheck","w":"@proteinjs/server-api/Route","value":"has type"}]}';
26
25
 
27
26
  /** Generate Source Links */
28
27
 
@@ -32,17 +31,15 @@ import { environmentCache } from '../src/envCache';
32
31
  import { healthCheck } from '../src/routes/healthCheck';
33
32
 
34
33
  const sourceLinks = {
35
- '@proteinjs/server/NodeGlobalDataStorage': NodeGlobalDataStorage,
36
- '@proteinjs/server/NodeSessionDataStorage': NodeSessionDataStorage,
37
- '@proteinjs/server/environmentCache': environmentCache,
38
- '@proteinjs/server/healthCheck': healthCheck,
34
+ '@proteinjs/server/NodeGlobalDataStorage': NodeGlobalDataStorage,
35
+ '@proteinjs/server/NodeSessionDataStorage': NodeSessionDataStorage,
36
+ '@proteinjs/server/environmentCache': environmentCache,
37
+ '@proteinjs/server/healthCheck': healthCheck,
39
38
  };
40
39
 
41
-
42
40
  /** Load Source Graph and Links */
43
41
 
44
42
  import { SourceRepository } from '@proteinjs/reflection';
45
43
  SourceRepository.merge(sourceGraph, sourceLinks);
46
44
 
47
-
48
- export * from '../index';
45
+ export * from '../index';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proteinjs/server",
3
- "version": "3.1.12",
3
+ "version": "3.1.14",
4
4
  "description": "A server impl",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -59,5 +59,6 @@
59
59
  "eslint-plugin-prettier": "5.1.3"
60
60
  },
61
61
  "main": "./dist/generated/index.js",
62
- "types": "./dist/generated/index.d.ts"
62
+ "types": "./dist/generated/index.d.ts",
63
+ "gitHead": "d60e4f933c7b666c33a56ffe59a6f719dddbc30b"
63
64
  }
@@ -0,0 +1,109 @@
1
+ /**
2
+ * Dev-only webpack entry that VISIBILITY-GATES the HMR event stream: only visible tabs hold
3
+ * an SSE connection. Each dev tab's hot-update stream occupies one of the browser's 6
4
+ * HTTP/1.1 connection slots to the HMR origin for as long as the tab lives, so accumulated
5
+ * hidden tabs (agent-driven panes especially) can exhaust the pool and starve newly visible
6
+ * tabs of live reload. Closing the stream while hidden frees the slot; catch-up on
7
+ * re-connect is free because webpack-hot-middleware's server publishes its latest build
8
+ * stats ('sync') to every new subscriber, and the stock client hot-applies from that.
9
+ *
10
+ * This file is compiled by the normal package build and injected by absolute dist path as a
11
+ * webpack entry AHEAD of webpack-hot-middleware/client (see createWebpackConfigOverlay), so
12
+ * the EventSource patch below is installed before the client connects. It executes inside
13
+ * the browser bundle: keep it free of imports and Node globals (`process` in particular —
14
+ * webpack's DefinePlugin rewrites `process.env` references).
15
+ */
16
+
17
+ /**
18
+ * Drop-in for the EventSource the HMR client holds. The client keeps its instance for the
19
+ * page lifetime, so a plain EventSource can't be closed and reopened on visibility changes
20
+ * without the client seeing a dead connection; this gate owns the underlying native
21
+ * connection and creates/destroys it as the tab shows/hides, while the client's handler
22
+ * assignments (onopen/onerror/onmessage — the only surface webpack-hot-middleware/client
23
+ * uses, plus close()) keep working across recreations because they live here, not on the
24
+ * connection.
25
+ */
26
+ export class VisibilityGatedEventSource {
27
+ onopen: ((event: Event) => unknown) | null = null;
28
+ onerror: ((event: Event) => unknown) | null = null;
29
+ onmessage: ((event: MessageEvent) => unknown) | null = null;
30
+
31
+ private source: EventSource | null = null;
32
+ private closed = false;
33
+
34
+ constructor(private readonly url: string) {
35
+ document.addEventListener('visibilitychange', this.handleVisibilityChange);
36
+ // Hidden at construction (the client re-inits after its own disconnect timeout): stay
37
+ // parked with no connection until the tab becomes visible.
38
+ if (document.visibilityState === 'visible') {
39
+ this.connect();
40
+ }
41
+ }
42
+
43
+ close(): void {
44
+ this.closed = true;
45
+ document.removeEventListener('visibilitychange', this.handleVisibilityChange);
46
+ this.disconnect();
47
+ }
48
+
49
+ get readyState(): number {
50
+ if (this.closed) {
51
+ return 2; // CLOSED
52
+ }
53
+ // Parked-while-hidden reads as CONNECTING: not closed, will connect on visibility.
54
+ return this.source ? this.source.readyState : 0;
55
+ }
56
+
57
+ private readonly handleVisibilityChange = (): void => {
58
+ if (document.visibilityState === 'hidden') {
59
+ this.disconnect();
60
+ } else if (!this.source) {
61
+ this.connect();
62
+ }
63
+ };
64
+
65
+ private connect(): void {
66
+ const source = new nativeEventSource(this.url);
67
+ // Forward through the gate's handler slots so handlers the client assigned once keep
68
+ // firing on every recreated connection.
69
+ source.onopen = (event) => this.onopen && this.onopen(event);
70
+ source.onerror = (event) => this.onerror && this.onerror(event);
71
+ source.onmessage = (event) => this.onmessage && this.onmessage(event);
72
+ this.source = source;
73
+ }
74
+
75
+ private disconnect(): void {
76
+ if (this.source) {
77
+ this.source.close();
78
+ this.source = null;
79
+ }
80
+ }
81
+ }
82
+
83
+ const hmrUrlMarker = '__webpack_hmr';
84
+ let nativeEventSource: typeof EventSource;
85
+
86
+ // Install the patch at module load (this entry precedes the HMR client in the bundle).
87
+ // Only the HMR stream URL is gated; every other EventSource on the page is untouched.
88
+ (() => {
89
+ if (typeof window === 'undefined' || !window.EventSource || typeof document.visibilityState !== 'string') {
90
+ return; // no browser, no EventSource, or no Page Visibility API — leave native behavior alone
91
+ }
92
+
93
+ nativeEventSource = window.EventSource;
94
+ function PatchedEventSource(this: unknown, url: string | URL, init?: EventSourceInit): EventSource {
95
+ return (
96
+ String(url).indexOf(hmrUrlMarker) !== -1
97
+ ? new VisibilityGatedEventSource(String(url))
98
+ : new nativeEventSource(url, init)
99
+ ) as EventSource;
100
+ }
101
+ // Non-HMR instances are genuine natives; sharing the native prototype keeps their
102
+ // `instanceof EventSource` true, and the state constants ride along for code that reads
103
+ // them off the global.
104
+ PatchedEventSource.prototype = nativeEventSource.prototype;
105
+ (PatchedEventSource as any).CONNECTING = nativeEventSource.CONNECTING;
106
+ (PatchedEventSource as any).OPEN = nativeEventSource.OPEN;
107
+ (PatchedEventSource as any).CLOSED = nativeEventSource.CLOSED;
108
+ window.EventSource = PatchedEventSource as unknown as typeof EventSource;
109
+ })();
@@ -6,7 +6,7 @@ import cookieParser from 'cookie-parser';
6
6
  import bodyParser from 'body-parser';
7
7
  import passport from 'passport';
8
8
  import passportLocal from 'passport-local';
9
- import { Server as HttpServer } from 'http';
9
+ import { createServer as createHttpServer, Server as HttpServer } from 'http';
10
10
  import {
11
11
  Global,
12
12
  GlobalData,
@@ -122,7 +122,12 @@ function initializeHotReloading(app: express.Express, config: ServerConfig): Pro
122
122
  const webpackDevMiddleware = appRequire('webpack-dev-middleware');
123
123
  const webpackHotMiddleware = appRequire('webpack-hot-middleware');
124
124
 
125
- const devConfig = createWebpackConfigOverlay(config, webpack, appRequire);
125
+ // Same port resolution start() uses (SERVER_PORT wins), +100 — the stream's own origin.
126
+ // +1 would collide with a sibling workspace: local workspaces run their apps on
127
+ // consecutive ports (3002, 3004, ...); +100 maps 3002→3102, 3004→3104, clear of all.
128
+ const appPort = process.env.SERVER_PORT ? parseInt(process.env.SERVER_PORT) : config.port ? config.port : 3000;
129
+ const hmrPort = Number(process.env.HMR_PORT) || appPort + 100;
130
+ const devConfig = createWebpackConfigOverlay(config, webpack, appRequire, hmrPort);
126
131
 
127
132
  const compiler = webpack(devConfig);
128
133
 
@@ -149,7 +154,30 @@ function initializeHotReloading(app: express.Express, config: ServerConfig): Pro
149
154
  headers: { 'Cache-Control': 'no-cache' },
150
155
  });
151
156
  app.use(devMiddleware);
152
- app.use(webpackHotMiddleware(compiler));
157
+
158
+ // The HMR EVENT STREAM lives on its OWN ORIGIN (port + 100, or HMR_PORT), never the app's.
159
+ // Each open dev tab holds one persistent SSE connection for hot updates, and SSE counts
160
+ // against Chrome's 6-connections-per-origin HTTP/1.1 limit — with the stream on the app
161
+ // origin, ~6 accumulated tabs (agent-driven panes accumulate them fast) silently exhausted
162
+ // the pool and EVERY new fetch from ANY tab stalled forever in the browser queue (verified
163
+ // live 2026-08-01: a stalled service POST completed the instant two idle tabs closed; it
164
+ // silently dropped a chat send). On a separate origin the streams pool against their own
165
+ // 6-slot budget: past ~6 tabs, a background tab's LIVE-RELOAD degrades (its stream queues
166
+ // until a slot frees) but app requests are untouched — the failure mode this layer must
167
+ // never have. HTTP/2 (no per-origin cap) was rejected: browsers require TLS for h2, and a
168
+ // local cert-trust story is a far bigger footprint than one extra dev-only listener.
169
+ const hmrMiddleware = webpackHotMiddleware(compiler);
170
+ const hmrServer = createHttpServer((request, response) => {
171
+ // Dev-only sibling: SSE GETs from the app origin — permissive CORS is correct here.
172
+ response.setHeader('Access-Control-Allow-Origin', '*');
173
+ hmrMiddleware(request, response, () => {
174
+ response.statusCode = 404;
175
+ response.end();
176
+ });
177
+ });
178
+ hmrServer.listen(hmrPort, () => {
179
+ logger.info({ message: `HMR event stream listening on its own origin`, obj: { hmrPort } });
180
+ });
153
181
 
154
182
  app.get('/dev/build-info', (request: express.Request, response: express.Response) => {
155
183
  response.json(DevClientBuild.get() ?? {});
@@ -167,7 +195,7 @@ function makeAppRequire(nodeModulesPath: string) {
167
195
  return createRequire(path.join(nodeModulesPath, '__app_require__.js'));
168
196
  }
169
197
 
170
- function createWebpackConfigOverlay(config: ServerConfig, webpack: any, appRequire: any) {
198
+ function createWebpackConfigOverlay(config: ServerConfig, webpack: any, appRequire: any, hmrPort: number) {
171
199
  // Load the consumer webpack config (CommonJS). If it exports a function, call with { mode: 'development' }.
172
200
  const consumerExport = require(config.hotClientBuilds!.webpackConfigPath);
173
201
  const baseConfig = typeof consumerExport === 'function' ? consumerExport({ mode: 'development' }) : consumerExport;
@@ -178,9 +206,19 @@ function createWebpackConfigOverlay(config: ServerConfig, webpack: any, appRequi
178
206
  // Ensure the compiler context points at the consumer app root (helps some plugins)
179
207
  devConfig.context = devConfig.context || path.dirname(config.hotClientBuilds!.nodeModulesPath);
180
208
 
181
- // Use an ABSOLUTE path to the HMR client from the consumer's node_modules
209
+ // Use an ABSOLUTE path to the HMR client from the consumer's node_modules. The `path` query
210
+ // points the client's EventSource at the stream's OWN ORIGIN (see the sibling listener in
211
+ // initializeHotReloading) so dev tabs never spend app-origin connection slots on SSE.
212
+ // The visibility gate (compiled by this package's own build) must come FIRST: its
213
+ // EventSource patch has to be installed before the HMR client connects, so only VISIBLE
214
+ // tabs hold a stream slot (hidden tabs drop theirs and re-sync on reconnect).
215
+ const visibilityGateAbs = require.resolve('./VisibilityGatedEventSource');
182
216
  const hmrClientAbs = appRequire.resolve('webpack-hot-middleware/client');
183
- devConfig.entry = { app: [hmrClientAbs, config.staticContent!.appEntryPath] };
217
+ // reload=true: when hot-apply can't complete (typically a tab that sat hidden across a
218
+ // server restart — the new process has none of the old hot-update manifests), the client
219
+ // falls back to a full reload instead of warning and silently serving a stale bundle.
220
+ const hmrClientEntry = `${hmrClientAbs}?path=http://localhost:${hmrPort}/__webpack_hmr&reload=true`;
221
+ devConfig.entry = { app: [visibilityGateAbs, hmrClientEntry, config.staticContent!.appEntryPath] };
184
222
 
185
223
  // Ensure bundles are served from memory at /static/, and set a concrete path for plugins that read it.
186
224
  devConfig.output = {