增加socket逻辑