We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66e2a0c commit 2cd4099Copy full SHA for 2cd4099
src/lib/utils.ts
@@ -24,22 +24,3 @@ export interface HarEntry {
24
serverIPAddress?: string;
25
time?: number;
26
}
27
-
28
-export function createCustomInitializeHandler(
29
- origHandler: (request: any, extra: any) => Promise<any>,
30
- logger: any,
31
- setClientName: (name: string) => void,
32
-) {
33
- return async function (this: any, request: any, extra: any) {
34
- const clientInfo = request.params.clientInfo;
35
- if (clientInfo && clientInfo.name) {
36
- setClientName(clientInfo.name);
37
- logger.info(
38
- `Client connected: ${clientInfo.name} (version: ${clientInfo.version})`,
39
- );
40
- } else {
41
- logger.info("Client connected: unknown client");
42
- }
43
- return origHandler.call(this, request, extra);
44
- };
45
-}
0 commit comments