Socket module is a part of the backend responsible for handling socket connections. It is used to communicate with the frontend and to send notifications to the user.
Socket module is a simple socket server that listens on port 3000. It is implemented using the socket.io library. It is used to send notifications to the user when the AI module finishes processing the data. It is also used to send notifications to the user when the user is connected to the socket server and the AI module finishes processing the data.
To send a notification to the user, you need to emit a <event_name>
event to the socket server.
This event is emitted by the socket server when the user connects to the socket server. It is used to send notifications to the user when the user is connected to the socket server.
This event is emitted by the socket server when the user disconnects from the socket server.
This event is emitted by user when the user wants to start the analysis.
This event is emitted by the socket server as a status update.
This event is emitted by the socket server when the analysis is done.
This event is emitted by the socket server when the analysis fails.