fixed the socket problem. created io in serverObject (server.io)