Standardize the way that socket messages are dispatched and their results are handled
The socket event name being handled
Data provided to the Socket event
A Promise which resolves to the SocketResponse
Handle an error returned from the database, displaying it on screen and in the console
The provided Error message
Standardize the way that socket messages are dispatched and their results are handled