Is there any name convention for response event in socketIO?

For example, the client site emits the event "getAllBooks". The server receives this event, create another internal event with a correlation id to the original event and puts it to queue for handling on another part of the backend. Then acks the event "getAllBooks". Backend process internal event and is ready to emit a response event for "getAllBooks" event. Is there any name convention for this response event? I prefer to use postfix "Response" for these case it would be "getAllBooksResponse", but I saw in some projects that there used the original name.



Read more here: https://stackoverflow.com/questions/67922298/is-there-any-name-convention-for-response-event-in-socketio

Content Attribution

This content was originally published by marosbfm at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: