Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop to use request package in streaming #102

Closed
h3poteto opened this issue Nov 27, 2019 · 1 comment
Closed

Stop to use request package in streaming #102

h3poteto opened this issue Nov 27, 2019 · 1 comment

Comments

@h3poteto
Copy link
Owner

Because request is a library for node.js, and it contains node core library. For example fs.
So I can't compile megalodon for browser js.

@h3poteto
Copy link
Owner Author

Mastodon's streaming is event-stream (text/event-stream), so we can use EventSource to receive its.
https://github.com/EventSource/eventsource

@h3poteto h3poteto changed the title Use axios instead of request Use eventsource instead of request Dec 5, 2019
@h3poteto h3poteto changed the title Use eventsource instead of request Stop to use request package in streaming Dec 6, 2019
h3poteto added a commit that referenced this issue Dec 7, 2019
h3poteto added a commit that referenced this issue Dec 9, 2019
refs #102 Get event-stream using axios
h3poteto added a commit that referenced this issue Dec 9, 2019
refs #102 Replcae EventStream to StreamListener
h3poteto added a commit that referenced this issue Dec 9, 2019
refs #102 Update description and readme for browser
h3poteto added a commit that referenced this issue Dec 9, 2019
h3poteto added a commit that referenced this issue Dec 9, 2019
refs #102 Remove unused request package
@h3poteto h3poteto closed this as completed Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant