{"versions":{"2.1.0":{"name":"dingtalk-stream","version":"2.1.0","description":"Nodejs SDK for DingTalk Stream Mode API, Compared with the webhook mode, it is easier to access the DingTalk","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","type":"module","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"exports":{".":{"types":"./dist/index.d.ts","require":"./dist/index.cjs","import":"./dist/index.mjs"},"./client":{"types":"./dist/client.d.ts","require":"./dist/client.cjs","import":"./dist/client.mjs"},"./constants":{"types":"./dist/constants.d.ts","require":"./dist/constants.cjs","import":"./dist/constants.mjs"},"./*":"./*"},"scripts":{"start":"ts-node-esm example/index.ts","build":"rimraf dist && rollup -c","dev":"rollup -c --watch --watch.include 'src/**' -m inline","prepublishOnly":"pnpm build","typecheck":"tsc --noEmit"},"repository":{"type":"git","url":"git+https://github.com/open-dingtalk/dingtalk-stream-sdk-nodejs.git"},"keywords":["DingTalk Stream Mode","Nodejs","SDK"],"author":{"name":"junlong.hjl@alibaba-inc.com"},"license":"MIT","bugs":{"url":"https://github.com/open-dingtalk/dingtalk-stream-sdk-nodejs/issues"},"homepage":"https://github.com/open-dingtalk/dingtalk-stream-sdk-nodejs#readme","dependencies":{"axios":"^1.4.0","debug":"^4.3.4","ws":"^8.13.0"},"devDependencies":{"@rollup/plugin-alias":"^5.0.0","@rollup/plugin-commonjs":"^25.0.4","@rollup/plugin-json":"^6.0.0","@rollup/plugin-node-resolve":"^15.2.0","@types/debug":"^4.1.8","@types/node":">=16","@types/ws":"^8.5.5","rimraf":"^5.0.1","rollup":"^3.28.0","rollup-plugin-dts":"^6.0.0","rollup-plugin-esbuild":"^5.0.0","ts-node":"^10.9.1","typescript":"^5.1.6","vite":"^4.4.9"},"gitHead":"7061a3bbd2fa4d1d30c17d9f597e1e132327b7c0","_id":"dingtalk-stream@2.1.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-N8iqpBmw69xO7jZHs9jGKLNBDCqJXmZ7Mg2JgD/9kXMtzrHxtHYq+OluxDYKwhvMJKJSxmt0hjjuX53Kzj3LHA==","shasum":"d1f3301e107536259eee386e0fda07ed3705ba1f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dingtalk-stream/-/dingtalk-stream-2.1.0.tgz","fileCount":13,"unpackedSize":29132,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAsPuj3yV5Y4RBLz/PTE8bJIXUlJD6tzY+7T/Y6u+HU0AiByRx1Qx1ZEsmSkfeCpV9P7/wTLbegtDJNFzRI6/WNzzA=="}],"size":7172},"_npmUser":{"name":"anonymous","email":"dingtalk-open@service.dingtalk.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"dingtalk-open@service.dingtalk.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dingtalk-stream_2.1.0_1697532083487_0.5011464965917192"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-17T08:41:23.737Z","publish_time":1697532083737,"_source_registry_name":"default","contributors":[]},"2.1.1":{"name":"dingtalk-stream","version":"2.1.1","description":"Nodejs SDK for DingTalk Stream Mode API, Compared with the webhook mode, it is easier to access the DingTalk","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","type":"module","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"exports":{".":{"types":"./dist/index.d.ts","require":"./dist/index.cjs","import":"./dist/index.mjs"},"./client":{"types":"./dist/client.d.ts","require":"./dist/client.cjs","import":"./dist/client.mjs"},"./constants":{"types":"./dist/constants.d.ts","require":"./dist/constants.cjs","import":"./dist/constants.mjs"},"./*":"./*"},"scripts":{"start":"ts-node-esm example/index.ts","build":"rimraf dist && rollup -c","dev":"rollup -c --watch --watch.include 'src/**' -m inline","prepublishOnly":"pnpm build","typecheck":"tsc --noEmit"},"repository":{"type":"git","url":"git+https://github.com/open-dingtalk/dingtalk-stream-sdk-nodejs.git"},"keywords":["DingTalk Stream Mode","Nodejs","SDK"],"author":{"name":"junlong.hjl@alibaba-inc.com"},"license":"MIT","bugs":{"url":"https://github.com/open-dingtalk/dingtalk-stream-sdk-nodejs/issues"},"homepage":"https://github.com/open-dingtalk/dingtalk-stream-sdk-nodejs#readme","dependencies":{"axios":"^1.4.0","debug":"^4.3.4","ws":"^8.13.0"},"devDependencies":{"@rollup/plugin-alias":"^5.0.0","@rollup/plugin-commonjs":"^25.0.4","@rollup/plugin-json":"^6.0.0","@rollup/plugin-node-resolve":"^15.2.0","@types/debug":"^4.1.8","@types/node":">=16","@types/ws":"^8.5.5","rimraf":"^5.0.1","rollup":"^3.28.0","rollup-plugin-dts":"^6.0.0","rollup-plugin-esbuild":"^5.0.0","ts-node":"^10.9.1","typescript":"^5.1.6","vite":"^4.4.9"},"gitHead":"b82a760f3fcf7ee669163e1ce1c8300990ff1025","_id":"dingtalk-stream@2.1.1","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-9rnoioSpHL433zbRVnkZ8R5+jYitsAn2CR+qRarb+8Pe19YatkLHOR9ZyQl2YeMjZt6iG5TOuyF0G8cmwHaTPg==","shasum":"9faf2c85d04849177dd3916f9fd7db94dfb1a858","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dingtalk-stream/-/dingtalk-stream-2.1.1.tgz","fileCount":13,"unpackedSize":29834,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1Oqj17DQzQ+Jo+EIiknvrveMefMUR+0i5MVhOVIuCdgIgd36Jupg9gI5F5GliDRr8yyY8w+HzIR9XI9DnwK7gKZ8="}],"size":7252},"_npmUser":{"name":"anonymous","email":"dingtalk-open@service.dingtalk.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"dingtalk-open@service.dingtalk.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dingtalk-stream_2.1.1_1697599314395_0.7559706134369233"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-18T03:21:54.632Z","publish_time":1697599314632,"_source_registry_name":"default","contributors":[]},"2.1.2":{"name":"dingtalk-stream","version":"2.1.2","description":"Nodejs SDK for DingTalk Stream Mode API, Compared with the webhook mode, it is easier to access the DingTalk","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","type":"module","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"exports":{".":{"types":"./dist/index.d.ts","require":"./dist/index.cjs","import":"./dist/index.mjs"},"./client":{"types":"./dist/client.d.ts","require":"./dist/client.cjs","import":"./dist/client.mjs"},"./constants":{"types":"./dist/constants.d.ts","require":"./dist/constants.cjs","import":"./dist/constants.mjs"},"./*":"./*"},"scripts":{"start":"ts-node-esm example/index.ts","build":"rimraf dist && rollup -c","dev":"rollup -c --watch --watch.include 'src/**' -m inline","prepublishOnly":"pnpm build","typecheck":"tsc --noEmit"},"repository":{"type":"git","url":"git+https://github.com/open-dingtalk/dingtalk-stream-sdk-nodejs.git"},"keywords":["DingTalk Stream Mode","Nodejs","SDK"],"author":{"name":"junlong.hjl@alibaba-inc.com"},"license":"MIT","bugs":{"url":"https://github.com/open-dingtalk/dingtalk-stream-sdk-nodejs/issues"},"homepage":"https://github.com/open-dingtalk/dingtalk-stream-sdk-nodejs#readme","dependencies":{"axios":"^1.4.0","debug":"^4.3.4","ws":"^8.13.0"},"devDependencies":{"@rollup/plugin-alias":"^5.0.0","@rollup/plugin-commonjs":"^25.0.4","@rollup/plugin-json":"^6.0.0","@rollup/plugin-node-resolve":"^15.2.0","@types/debug":"^4.1.8","@types/node":">=16","@types/ws":"^8.5.5","rimraf":"^5.0.1","rollup":"^3.28.0","rollup-plugin-dts":"^6.0.0","rollup-plugin-esbuild":"^5.0.0","ts-node":"^10.9.1","typescript":"^5.1.6","vite":"^4.4.9"},"gitHead":"57ece52091e0447b499dc363e41b17e3ce139cdc","_id":"dingtalk-stream@2.1.2","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-YOpN4nyU2OdMJqmae43BlHTP/pyQ8KCTop4kqZV5YMU9CraKUa1pCb81SqIgDX3w+xCkzK7iT/Cmdq5PghQZ6w==","shasum":"70e36cf3003ad86be4aab74799c83d25d8289f53","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dingtalk-stream/-/dingtalk-stream-2.1.2.tgz","fileCount":13,"unpackedSize":29942,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDR4T14kqu4MlP8lJQAQonw7WEqhoacRzwu/q/j9T//XAiAsoSK/YWYJ7Qnu5Mu9S6XPKNlU9RHDzCBERSETNK6D3w=="}],"size":7263},"_npmUser":{"name":"anonymous","email":"dingtalk-open@service.dingtalk.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"dingtalk-open@service.dingtalk.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dingtalk-stream_2.1.2_1699611477086_0.7346627122608547"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-10T10:17:57.250Z","publish_time":1699611477250,"_source_registry_name":"default","contributors":[]},"2.1.4":{"name":"dingtalk-stream","version":"2.1.4","description":"Nodejs SDK for DingTalk Stream Mode API, Compared with the webhook mode, it is easier to access the DingTalk","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","type":"module","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"exports":{".":{"types":"./dist/index.d.ts","require":"./dist/index.cjs","import":"./dist/index.mjs"},"./client":{"types":"./dist/client.d.ts","require":"./dist/client.cjs","import":"./dist/client.mjs"},"./constants":{"types":"./dist/constants.d.ts","require":"./dist/constants.cjs","import":"./dist/constants.mjs"},"./*":"./*"},"scripts":{"start":"ts-node-esm example/index.ts","build":"rimraf dist && rollup -c","dev":"rollup -c --watch --watch.include 'src/**' -m inline","prepublishOnly":"pnpm build","typecheck":"tsc --noEmit"},"repository":{"type":"git","url":"git+https://github.com/open-dingtalk/dingtalk-stream-sdk-nodejs.git"},"keywords":["DingTalk Stream Mode","Nodejs","SDK"],"author":{"name":"junlong.hjl@alibaba-inc.com"},"license":"MIT","bugs":{"url":"https://github.com/open-dingtalk/dingtalk-stream-sdk-nodejs/issues"},"homepage":"https://github.com/open-dingtalk/dingtalk-stream-sdk-nodejs#readme","dependencies":{"axios":"^1.4.0","debug":"^4.3.4","ws":"^8.13.0"},"devDependencies":{"@rollup/plugin-alias":"^5.0.0","@rollup/plugin-commonjs":"^25.0.4","@rollup/plugin-json":"^6.0.0","@rollup/plugin-node-resolve":"^15.2.0","@types/debug":"^4.1.8","@types/node":">=16","@types/ws":"^8.5.5","rimraf":"^5.0.1","rollup":"^3.28.0","rollup-plugin-dts":"^6.0.0","rollup-plugin-esbuild":"^5.0.0","ts-node":"^10.9.1","typescript":"^5.1.6","vite":"^4.4.9"},"gitHead":"733e8644eb379e50896c9da65f7196c6bf702a45","_id":"dingtalk-stream@2.1.4","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-rgQbXLGWfASuB9onFcqXTnRSj4ZotimhBOnzrB4kS19AaU9lshXiuofs1GAYcKh5uzPWCAuEs3tMtiadTQWP4A==","shasum":"29a0fd04bc950073006d489c3ab6621c1a782669","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dingtalk-stream/-/dingtalk-stream-2.1.4.tgz","fileCount":13,"unpackedSize":29416,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDiHxsOvPnnKnbFUznDGBAzyEmxr1nSwlvNWa6EO7nDgIgL01M5IzLknCuPnCi6mi3BFvc+xcdhMkA1thHSZYIyk4="}],"size":6726},"_npmUser":{"name":"anonymous","email":"dingtalk-open@service.dingtalk.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"dingtalk-open@service.dingtalk.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dingtalk-stream_2.1.4_1711006126817_0.6605090065901849"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-21T07:28:46.969Z","publish_time":1711006126969,"_source_registry_name":"default","contributors":[]},"2.1.5":{"name":"dingtalk-stream","version":"2.1.5","description":"Nodejs SDK for DingTalk Stream Mode API, Compared with the webhook mode, it is easier to access the DingTalk","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","type":"module","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"exports":{".":{"types":"./dist/index.d.ts","require":"./dist/index.cjs","import":"./dist/index.mjs"},"./client":{"types":"./dist/client.d.ts","require":"./dist/client.cjs","import":"./dist/client.mjs"},"./constants":{"types":"./dist/constants.d.ts","require":"./dist/constants.cjs","import":"./dist/constants.mjs"},"./*":"./*"},"scripts":{"start":"ts-node-esm example/index.ts","build":"rimraf dist && rollup -c","dev":"rollup -c --watch --watch.include 'src/**' -m inline","prepublishOnly":"pnpm build","typecheck":"tsc --noEmit"},"repository":{"type":"git","url":"git+https://github.com/open-dingtalk/dingtalk-stream-sdk-nodejs.git"},"keywords":["DingTalk Stream Mode","Nodejs","SDK"],"author":{"name":"junlong.hjl@alibaba-inc.com"},"license":"MIT","bugs":{"url":"https://github.com/open-dingtalk/dingtalk-stream-sdk-nodejs/issues"},"homepage":"https://github.com/open-dingtalk/dingtalk-stream-sdk-nodejs#readme","dependencies":{"axios":"^1.4.0","debug":"^4.3.4","ws":"^8.13.0"},"devDependencies":{"@rollup/plugin-alias":"^5.0.0","@rollup/plugin-commonjs":"^25.0.4","@rollup/plugin-json":"^6.0.0","@rollup/plugin-node-resolve":"^15.2.0","@types/debug":"^4.1.8","@types/node":">=16","@types/ws":"^8.5.5","rimraf":"^5.0.1","rollup":"^3.28.0","rollup-plugin-dts":"^6.0.0","rollup-plugin-esbuild":"^5.0.0","ts-node":"^10.9.1","typescript":"^5.1.6","vite":"^4.4.9"},"gitHead":"b6701926e1532ec5b8a7e1a3988a7179fd7fa2b5","_id":"dingtalk-stream@2.1.5","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-6H3tSc/mE6hMj4RBB5ntkI4ycC498RobmtMxfLS8eBTRPjBZlhUdDYEHA0asOoTLSzC2PHqupr4D4HVoaU7bRQ==","shasum":"04d95006f0a43d5564cf9f13e6ebc65592e0d26e","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dingtalk-stream/-/dingtalk-stream-2.1.5.tgz","fileCount":13,"unpackedSize":31004,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBJJrjyLUaL7IYrltwXPurMZwwEZ3y4vsd3aecq0+rYUAiAvljf9SECAvQMIXwt0DnwN2wZKJ5eui7S+5qL45LWCtQ=="}],"size":6964},"_npmUser":{"name":"anonymous","email":"dingtalk-open@service.dingtalk.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"dingtalk-open@service.dingtalk.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dingtalk-stream_2.1.5_1773887143143_0.20093458677107545"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-03-19T02:25:43.287Z","publish_time":1773887143287,"_source_registry_name":"default","contributors":[]},"2.1.6-beta.1":{"name":"dingtalk-stream","version":"2.1.6-beta.1","description":"Nodejs SDK for DingTalk Stream Mode API, Compared with the webhook mode, it is easier to access the DingTalk","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","type":"module","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"exports":{".":{"types":"./dist/index.d.ts","require":"./dist/index.cjs","import":"./dist/index.mjs"},"./client":{"types":"./dist/client.d.ts","require":"./dist/client.cjs","import":"./dist/client.mjs"},"./constants":{"types":"./dist/constants.d.ts","require":"./dist/constants.cjs","import":"./dist/constants.mjs"},"./*":"./*"},"scripts":{"start":"ts-node-esm example/index.ts","build":"rimraf dist && rollup -c","dev":"rollup -c --watch --watch.include 'src/**' -m inline","prepublishOnly":"pnpm build","typecheck":"tsc --noEmit","test":"pnpm build && node test/reconnect-mock.mjs","test:prod":"pnpm build && node test/reconnect-prod.mjs","test:demo":"node test/reconnect-storm-demo.mjs"},"repository":{"type":"git","url":"git+https://github.com/open-dingtalk/dingtalk-stream-sdk-nodejs.git"},"keywords":["DingTalk Stream Mode","Nodejs","SDK"],"author":{"name":"junlong.hjl@alibaba-inc.com"},"license":"MIT","bugs":{"url":"https://github.com/open-dingtalk/dingtalk-stream-sdk-nodejs/issues"},"homepage":"https://github.com/open-dingtalk/dingtalk-stream-sdk-nodejs#readme","dependencies":{"axios":"^1.4.0","debug":"^4.3.4","ws":"^8.13.0"},"devDependencies":{"@rollup/plugin-alias":"^5.0.0","@rollup/plugin-commonjs":"^25.0.4","@rollup/plugin-json":"^6.0.0","@rollup/plugin-node-resolve":"^15.2.0","@types/debug":"^4.1.8","@types/node":">=16","@types/ws":"^8.5.5","nock":"^14.0.11","rimraf":"^5.0.1","rollup":"^3.28.0","rollup-plugin-dts":"^6.0.0","rollup-plugin-esbuild":"^5.0.0","ts-node":"^10.9.1","typescript":"^5.1.6","vite":"^4.4.9"},"gitHead":"d9d346b3ef64ee3806c160969ba4742b9e19be5c","_id":"dingtalk-stream@2.1.6-beta.1","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-uYcBnf0Z4rfHHyN1ae4YnAFA6hUW2DmGVb0OZ53r/A272kuHnZynylE5pEJIJHkNIer6R9PCqpnsfsk9IuvglQ==","shasum":"8a7212a9c45b6241bbf3ff5299842219068ce8f4","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dingtalk-stream/-/dingtalk-stream-2.1.6-beta.1.tgz","fileCount":13,"unpackedSize":34513,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCS5/VCbPbef12udVBoeDnF7Yxicx/YzCGHvcCP+SG3+AIhANe25GkCVNH5/5UGRju65Qs4N8qTwbyELjdAJtd85Fws"}],"size":7446},"_npmUser":{"name":"anonymous","email":"dingtalk-open@service.dingtalk.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"dingtalk-open@service.dingtalk.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dingtalk-stream_2.1.6-beta.1_1774163563812_0.8626046639683211"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-03-22T07:12:43.964Z","publish_time":1774163563964,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"2.1.6-beta.1"},"name":"dingtalk-stream","time":{"created":"2023-10-17T10:49:03.941Z","modified":"2026-03-22T07:12:55.096Z","2.1.0":"2023-10-17T08:41:23.737Z","2.1.1":"2023-10-18T03:21:54.632Z","2.1.2":"2023-11-10T10:17:57.250Z","2.1.4":"2024-03-21T07:28:46.969Z","2.1.5":"2026-03-19T02:25:43.287Z","2.1.6-beta.1":"2026-03-22T07:12:43.964Z"},"readme":"<p align=\"left\">\n  <a target=\"_blank\" href=\"https://github.com/open-dingtalk/dingtalk-stream-sdk-nodejs/actions/workflows/publish.yml\">\n    <img src=\"https://img.shields.io/github/actions/workflow/status/open-dingtalk/dingtalk-stream-sdk-nodejs/publish.yml\" />\n  </a>\n\n  <a target=\"_blank\" href=\"https://www.npmjs.com/package/dingtalk-stream\">\n    <img alt=\"NPM Version\" src=\"https://img.shields.io/npm/v/dingtalk-stream\">\n  </a>\n\n</p>\n\n钉钉支持 Stream 模式接入事件推送、机器人收消息以及卡片回调，该 SDK 实现了 Stream 模式。相比 Webhook 模式，Stream 模式可以更简单的接入各类事件和回调。\n\n## 开发教程\n\n在 [教程文档](https://opensource.dingtalk.com/developerpedia/docs/explore/tutorials/stream/overview) 中，你可以找到钉钉 Stream 模式的教程文档和示例代码。\n\n### 参考资料\n\n* [Stream 模式说明](https://opensource.dingtalk.com/developerpedia/docs/learn/stream/overview)\n* [教程文档](https://opensource.dingtalk.com/developerpedia/docs/explore/tutorials/stream/overview)\n* [常见问题](https://opensource.dingtalk.com/developerpedia/docs/learn/stream/faq)\n* [Stream 模式共创群](https://opensource.dingtalk.com/developerpedia/docs/explore/support/?via=moon-group)\n\n### 调试方法\n\n1、创建企业内部应用\n\n进入钉钉开发者后台，创建企业内部应用，获取ClientID（即 AppKey）和ClientSecret（ 即AppSecret）。\n\n2、开通Stream 模式的机器人\n\n进入开发者后台新建的应用，点击应用能力 - 添加应用能力 - 机器人，完善机器人信息，选择stream模式并发布。\n\n3、使用demo项目测试，启动服务：\n\na、获取demo项目\n\n git clone git@github.com:open-dingtalk/dingtalk-stream-sdk-nodejs.git\nb、在example/config.json里配置应用信息。\n\nc、启动测试case\n\ncd dingtalk-stream-sdk-nodejs\nyarn\nnpm run build\nnpm start\n\n\n注意：ts-node-esm启动ts文件调试时，ts文件内import引用的文件后缀必须是js，ts会报找不到模块异常。","users":{}}