mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user