feat: update socket

This commit is contained in:
karishmas6
2024-06-08 00:18:06 +05:30
parent 4e175de94a
commit 8d6d939f75

View File

@@ -357,5 +357,15 @@ export class WorkflowGenerator {
}
};
/**
* Updates the socket used for communication with the client.
* @param socket The socket to be used for communication.
* @returns void
*/
public updateSocket = (socket: Socket) : void => {
this.socket = socket;
this.registerEventHandlers(socket);
};
}