update chat by socketio