We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c11a059 commit 71d9f03Copy full SHA for 71d9f03
1 file changed
chats/rdflib/examples/read-chat.mjs
@@ -0,0 +1,13 @@
1
+import ChatsModule from "../dist/index.js";
2
+import {Fetcher, graph, UpdateManager} from "rdflib";
3
+
4
+const store = graph();
5
+const fetcher = new Fetcher(store);
6
+const updater = new UpdateManager(store);
7
8
+const module = new ChatsModule({store, fetcher, updater});
9
10
+const chat = await module.readChat("http://localhost:3000/alice/public/chats/lobby/index.ttl#this");
11
12
+console.log(chat.name);
13
+console.table(chat.latestMessages)
0 commit comments