chat
- eventEmitter -
- getChatHistory - Retrieves the chat history from the server.
- processStarted - Notifies the server that a process has started and sets up an event listener for stopProcessClicked events.
- sendMessage - Sends a message through the WebSocket connection.
- stopProcess - Stops the ongoing process.
Sends a specific message to the server to stop the process.
- userMessageListener - Sets up a listener for incoming WebSocket messages and emits a custom event when a message is received.
- waitforReply - Waits for a reply to a sent message.