You should replace this with something like socketWatcher.watchSocket(this.socket) and the configuration check should be done in the SocketWatcher module.