Last active
May 21, 2024 06:04
-
-
Save PatrickJS/6812a8412890adf14295de234f65eba7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { readable, writable } = new TransformStream(); | |
fetch('/send?channel=123', method: 'POST', | |
headers: { 'Content-Type': 'text/plain' }, | |
body: readable, | |
}); | |
const response = await fetch('/receive?channel=123'); | |
const response_readable = response.body; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment