chore: register handler description

This commit is contained in:
karishmas6
2024-06-07 23:53:17 +05:30
parent 3d2cff905c
commit 06bd0bfc39

View File

@@ -88,6 +88,11 @@ export class WorkflowGenerator {
lastAction: '',
}
/**
* Registers the event handlers for all generator-related events on the socket.
* @param socket The socket used to communicate with the client.
* @private
*/
private registerEventHandlers = (socket: Socket) => {
socket.on('save', async (fileName: string) => {
logger.log('debug', `Saving workflow ${fileName}`);