Typescript, we need you

This commit is contained in:
Tom Moor
2021-09-25 08:55:52 -07:00
parent bcca4b91ee
commit 0021553518

View File

@@ -13,14 +13,10 @@ export default class CollaborationLogger {
}
async onConnect(data: { documentName: string, context: { user: User } }) {
Logger.info("hocuspocus", `New connection to "${data.documentName}"`, {
userId: data.context.user.id,
});
Logger.info("hocuspocus", `New connection to "${data.documentName}"`);
}
async onDisconnect(data: { documentName: string, context: { user: User } }) {
Logger.info("hocuspocus", `Connection to "${data.documentName}" closed `, {
userId: data.context.user.id,
});
Logger.info("hocuspocus", `Connection to "${data.documentName}" closed `);
}
}