{"_id":"@asyncapi/template-dart-websocket-client","_rev":"4-54389b2d0764844122a57439d17cbe28","name":"@asyncapi/template-dart-websocket-client","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@asyncapi/template-dart-websocket-client","version":"0.0.1","author":{"name":"Adi Boghawala","email":"boghawalaadi@gmail.com"},"license":"Apache-2.0","_id":"@asyncapi/template-dart-websocket-client@0.0.1","maintainers":[{"name":"fmvilas","email":"fmvilas@gmail.com"},{"name":"derberg","email":"lpgornicki@gmail.com"},{"name":"asyncapi-bot","email":"derberg@wp.pl"}],"dist":{"shasum":"cb634268e9de5193b1823fdf07fe6c39436415ca","tarball":"https://registry.npmjs.org/@asyncapi/template-dart-websocket-client/-/template-dart-websocket-client-0.0.1.tgz","fileCount":19,"integrity":"sha512-8+TATPfwMfIEQ4U0+cbdyZjK0+EUZxb02msGdqTg8LShHuOQzbP4PaKmTrpM4e+f7/fKrJMDSNtLC2MmfQPIWw==","signatures":[{"sig":"MEUCIQDwswBrnhMJnPrbv0cYXRMKGuR/0cdn8xuXNGpfJ4KRewIgdIIE6wXEFb3DaqUMHJ2V+CToXIBpct0rftqoI2RSSsQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24516},"jest":{"transform":{"^.+\\.jsx?$":"babel-jest"},"moduleNameMapper":{"^nimma/(.*)":"<rootDir>/../../../../../node_modules/nimma/dist/cjs/$1","^nimma/legacy$":"<rootDir>/../../../../../node_modules/nimma/dist/legacy/cjs/index.js"},"moduleFileExtensions":["js","json","jsx"]},"babel":{"presets":["@babel/preset-env",["@babel/preset-react",{"runtime":"automatic"}]]},"gitHead":"b5bd67ee5c273bb0fad61ea4ca676bbd696d5456","scripts":{"lint":"eslint --max-warnings 0 --config ../../../../../.eslintrc --ignore-path ../../../../../.eslintignore .","test":"npm run test:cleanup && jest  --coverage","lint:fix":"eslint --fix --max-warnings 0 --config ../../../../../.eslintrc --ignore-path ../../../../../.eslintignore .","test:update":"jest --updateSnapshot","test:cleanup":"rimraf \"test/temp\""},"_npmUser":{"name":"asyncapi-bot","email":"derberg@wp.pl"},"deprecated":"Should not be available in NPM. Internal AsyncAPI Generator package.","_npmVersion":"10.8.2","description":"This is a template generating Dart websocket client","directories":{},"_nodeVersion":"18.20.8","dependencies":{"@asyncapi/generator-helpers":"1.0.0","@asyncapi/generator-react-sdk":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","rimraf":"^3.0.2","@babel/cli":"^7.25.9","@babel/core":"^7.26.0","@asyncapi/parser":"^3.0.14","@babel/preset-env":"^7.26.0","eslint-plugin-jest":"^23.8.2","@asyncapi/generator":"*","@babel/preset-react":"^7.25.9","eslint-plugin-react":"^7.34.1","jest-esm-transformer":"^1.0.0","eslint-plugin-sonarjs":"^0.5.0"},"_npmOperationalInternal":{"tmp":"tmp/template-dart-websocket-client_0.0.1_1748865373854_0.9650321172656837","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-06-02T11:56:13.773Z","modified":"2026-07-31T14:03:02.653Z","0.0.1":"2025-06-02T11:56:14.031Z"},"author":{"name":"Adi Boghawala","email":"boghawalaadi@gmail.com"},"license":"Apache-2.0","description":"This is a template generating Dart websocket client","maintainers":[{"email":"lpgornicki@gmail.com","name":"derberg"}],"readme":"## Dart WebSocket Client\n\nYou can test this template:\n1. Clone the project and run `npm install`\n2. Navigate to `packages/templates/clients/websocket/dart`\n3. Install with `npm install` and run test with `npm run test`\n4. Navigate to the generated Hoppscotch client folder with `cd test/temp/snapshotTestResult/custom_client_hoppscotch`\n5. Install dependencies of the generated client: `dart pub get`\n6. Start an example script that uses a client library generated by the test: `dart run --packages=.dart_tool/package_config.json ../../../../example.dart`\n\n> By default, this is testing against Hoppscotch Echo service. You can modify `packages/templates/clients/websocket/dart/example.dart` and change first line to `import 'test/temp/snapshotTestResult/client_postman/client.dart';` and line 15 `final wsClient = PostmanEchoWebSocketClientClient();` and run `dart run --packages=.dart_tool/package_config.json ../../../../example.dart` again. You will see the example still works but against a different API. This is possible as both AsyncAPI documents have the same name of operation for sending messages: `sendEchoMessage` so each client generated has the same API.\n","readmeFilename":"README.md"}