Updated Socket server