This is a simple example to use Nes with Schmervice in hapipal-like project.
As there might be several susbcription channels, I prefer to separate them by domain, and have a single service that handles all the even passing between different parts of the code.
Example usage:
// somewhere in a router's handler
const { socketListenerService } = request.services()
...
socketListenerService.emit('championshipUpdated', data)