https://github.com/nathanosdev/agent-js-streaming-issue
https://github.com/nathanosdev/agent-js-streaming-issue
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nathanosdev/agent-js-streaming-issue
- Owner: nathanosdev
- Archived: true
- Created: 2023-02-21T13:37:13.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-21T13:38:10.000Z (about 3 years ago)
- Last Synced: 2025-07-26T14:30:58.568Z (7 months ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repo is a reproduction of an issue with differing behaviours between agent-js and agent-rs.
It contains two apps, both of which will make a request for the `/dashboard.js` file of the `xrfpr-ryaaa-aaaaj-aiq7q-cai` canister on mainnet.
To run the RS version:
```
$ cd agent-rs
$ cargo run
```
To run the JS version:
```
$ cd agent-js
$ npm i
$ npm start
```
When running the RS version, the streaming strategy is returned as `None`.
When running the JS version, the streaming strategy is returned as `[ { Callback: { token: [Object], callback: [Array] } } ]`.
This causes the file to streamed when it is requested through the service worker, but not through ICX Proxy.