Skip to content

Commit 2cd4099

Browse files
authored
Update utils.ts
1 parent 66e2a0c commit 2cd4099

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/lib/utils.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,3 @@ export interface HarEntry {
2424
serverIPAddress?: string;
2525
time?: number;
2626
}
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

Comments
 (0)