update nodeTailSocket + TypeScript