The listen method should be handled by a separate class. Also, unit tests for this are missing.
The listen method should be handled by a separate class. Also, unit tests for this are missing.