C: socket client update code structure
C: chat add server method