[chat] socket client and server