Created
August 1, 2020 20:39
-
-
Save jaxoncreed/e250e30b68e221a69110e559af746e45 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
export default async function getChatMessages(chatUrl) { | |
// The url of the file containing the chat | |
const dataUrl = chatUrl; | |
// The url of the node within the file that is the chat | |
const nodeUrl = chatUrl; | |
// Fetch the chat using solid-auth-client | |
const chatTtl = await (await auth.fetch(dataUrl)).text() | |
console.log(chatTtl) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment