Skip to content

Instantly share code, notes, and snippets.

@jaxoncreed
Created August 1, 2020 20:39
Show Gist options
  • Save jaxoncreed/e250e30b68e221a69110e559af746e45 to your computer and use it in GitHub Desktop.
Save jaxoncreed/e250e30b68e221a69110e559af746e45 to your computer and use it in GitHub Desktop.
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