Trying to replace the socket server with a more reliable one.