splitted socket-server.js into separate files