feat: Split up server creation and request handling

This allows us to decouple the WebSocket listening from the HTTP configs,
making these features completely orthogonal.
This commit is contained in:
Joachim Van Herwegen
2022-09-29 16:34:38 +02:00
parent 764ce3cc28
commit 4223dcf8a4
64 changed files with 949 additions and 694 deletions

View File

@@ -13,6 +13,7 @@ const portNames = [
'FileBackend',
'GlobalQuota',
'Identity',
'LegacyWebSocketsProtocol',
'LpdHandlerWithAuth',
'LpdHandlerWithoutAuth',
'Middleware',
@@ -28,10 +29,9 @@ const portNames = [
'SetupMemory',
'SparqlStorage',
'Subdomains',
'WebSocketsProtocol',
// Unit
'BaseHttpServerFactory',
'BaseServerFactory',
] as const;
export function getPort(name: typeof portNames[number]): number {