socket-server: Improve readability