feat: public constructor with socket for client communication

This commit is contained in:
karishmas6
2024-06-05 04:28:43 +05:30
parent b0250bbba2
commit b6bf1bfc35

View File

@@ -65,5 +65,13 @@ export class WorkflowInterpreter {
*/
private interpretationResume: (() => void) | null = null;
/**
* A public constructor taking a socket instance for communication with the client.
* @param socket Socket.io socket instance enabling communication with the client (frontend) side.
* @constructor
*/
constructor (socket: Socket) {
this.socket = socket;
}
}