Register event listener for backend events to the connection with the command name, not a common name "publish"
Create handler for published messages with its name
Fix mismatched variable name
Fix mismatched variable name
test: Update tests for socket.io API for new plugin spec