{"_id":"@antadu/realtime","_rev":"2-23bc0040099a49204fa2e36b06af3d7d","name":"@antadu/realtime","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@antadu/realtime","version":"0.1.0","keywords":["antadu","realtime","websocket","signalr","typescript"],"author":{"name":"Antadu"},"license":"MIT","_id":"@antadu/realtime@0.1.0","maintainers":[{"name":"antadu","email":"anldrkcn@gmail.com"}],"homepage":"https://antadurt.com/docs#typescript","bugs":{"url":"https://github.com/antadu/antaduRealTime/issues"},"dist":{"shasum":"dac0737950ed8fd6637df7e67d734e021e98000d","tarball":"https://registry.npmjs.org/@antadu/realtime/-/realtime-0.1.0.tgz","fileCount":23,"integrity":"sha512-RR7GF7x2jZQ2PbK0NTqByRtxUEP0yN16Gmx6JjbMhc8qJtEaBPysgkMoYEtf8oISOKGenTQZ3uXeUtTC8kDPNw==","signatures":[{"sig":"MEYCIQDjuy6M92lk4vWknP3tu66Q4G3PeeUc/ebi94zNIpji2AIhANBhqTtJBjH4mkeLoeEXrVuxsFPF9AebL0rKtCWSg0tu","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38066},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"d551c3ead72fda3d51e465951ad816dadf868778","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","test:watch":"vitest"},"_npmUser":{"name":"antadu","email":"anldrkcn@gmail.com"},"repository":{"url":"git+https://github.com/antadu/antaduRealTime.git","type":"git","directory":"sdk/typescript"},"_npmVersion":"11.16.0","description":"Transport-independent Antadu Realtime client for JavaScript and TypeScript.","directories":{},"sideEffects":false,"_nodeVersion":"26.3.1","dependencies":{"@microsoft/signalr":"10.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"4.1.10","typescript":"7.0.2"},"_npmOperationalInternal":{"tmp":"tmp/realtime_0.1.0_1786142359197_0.6175312893739073","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@antadu/realtime","version":"0.2.0","description":"Transport-independent Antadu Realtime client for JavaScript and TypeScript.","keywords":["antadu","realtime","websocket","signalr","typescript"],"author":{"name":"Antadu"},"homepage":"https://antadurt.com/docs#typescript","repository":{"type":"git","url":"git+https://github.com/antadu/antaduRealTime.git","directory":"sdk/typescript"},"bugs":{"url":"https://github.com/antadu/antaduRealTime/issues"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"sideEffects":false,"scripts":{"build":"tsc -p tsconfig.json","test":"vitest run","test:watch":"vitest"},"dependencies":{"@microsoft/signalr":"10.0.0"},"devDependencies":{"typescript":"7.0.2","vitest":"4.1.10"},"engines":{"node":">=18.10"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"license":"MIT","gitHead":"2475e3cd45b34c1be5104b738a5886aa52a8adb5","_id":"@antadu/realtime@0.2.0","_nodeVersion":"26.7.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-y98/FyIfUqgudfFlDJllzJ0QK0pobSrmpPoM1VfYg3DJTu30f4xQIYG7hukUGJ0WrS/HraxNnOt+eu0zA1dtFg==","shasum":"521c6d5060ddc9d19f345029d9145b4b00056f56","tarball":"https://registry.npmjs.org/@antadu/realtime/-/realtime-0.2.0.tgz","fileCount":23,"unpackedSize":38099,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDmjqDtx5HbC7MWd8BBVuoRWnkXAfJitipHly3ot+9yEwIgDKZP1pGrMOScbxfO7iUpTFSHTSKgyQJQaWLeuLM3lec="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:609a5e4f-85bd-458a-8b55-f49096dde096"}},"directories":{},"maintainers":[{"name":"antadu","email":"anldrkcn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/realtime_0.2.0_1786818844277_0.44508562903882654"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-07T22:39:19.086Z","modified":"2026-08-15T18:34:04.598Z","0.1.0":"2026-08-07T22:39:19.347Z","0.2.0":"2026-08-15T18:34:04.465Z"},"bugs":{"url":"https://github.com/antadu/antaduRealTime/issues"},"author":{"name":"Antadu"},"license":"MIT","homepage":"https://antadurt.com/docs#typescript","keywords":["antadu","realtime","websocket","signalr","typescript"],"repository":{"type":"git","url":"git+https://github.com/antadu/antaduRealTime.git","directory":"sdk/typescript"},"description":"Transport-independent Antadu Realtime client for JavaScript and TypeScript.","maintainers":[{"name":"antadu","email":"anldrkcn@gmail.com"}],"readme":"# @antadu/realtime\n\nAntadu Realtime için taşıma katmanından bağımsız TypeScript istemcisidir.\n\n```bash\nnpm install @antadu/realtime\n```\n\n```ts\nimport { AntaduRealtimeClient } from \"@antadu/realtime\";\n\nconst realtime = new AntaduRealtimeClient({\n  endpoint: \"https://realtime.antadurt.com\",\n  tokenProvider: async () => authService.getRealtimeToken(),\n  missedEvents: {\n    userId: currentUser.id\n  }\n});\n\nrealtime.on<{ policyId: number }>(\n  \"policy.renewal.created\",\n  event => console.log(event.data.policyId)\n);\n\nawait realtime.subscribe(\"policy-renewals\");\nawait realtime.connect();\n```\n\nSDK otomatik reconnect, token provider çağrısı, subscription restore,\nheartbeat, event-ID duplicate suppression, critical ACK ve missed-event cursor\nyönetimini üstlenir.\n\nConnection token kısa ömürlü olmalı ve yalnız kendi backend'iniz tarafından\nüretilmelidir. Tam entegrasyon rehberi: https://antadurt.com/docs#typescript\n","readmeFilename":"README.md"}