Handle cases when socket returns multiple json strings as one event.