Trying to migrate an Async Class to Worker
I'm working with the twitch api, and I'm trying to migrate a Class Object to cloudflare workers. Currently I'm having issues trying to resolve how the fetch handler works, and how I'm used to using fetch. Given that I use fetch several times throughout the Class Object, would i be able to just define the whole Class within the
Default Export...
fetch handler and have everything work there? would that even be desirable? I think I could maybe just pull all of the fetch items out and only use them within the handler, but that seems like making an issue way more complex than it needs to be.
Code is available here: https://github.com/Senti3ntB3ing/cloudflare-en-passant
Class in question is available in twitch_chat.jsGitHub
GitHub - Senti3ntB3ing/cloudflare-en-passant
Contribute to Senti3ntB3ing/cloudflare-en-passant development by creating an account on GitHub.
0 Replies