tangled
alpha
login
or
join now
evbogue.com
/
wiredove
1
fork
atom
a demonstration replicated social networking web app built with anproto
wiredove.net/
social
ed25519
protocols
1
fork
atom
overview
issues
pulls
pipelines
turn dovepub blast back on
Everett Bogue
9 months ago
302b10cd
7e1cb29a
+8
-8
1 changed file
expand all
collapse all
unified
split
connect.js
+8
-8
connect.js
···
31
31
ws.send(latest.sig)
32
32
}
33
33
//below sends everything in the client to a dovepub pds server
34
34
-
//const log = await bogbot.query()
35
35
-
//if (log) {
36
36
-
// for (const msg of log) {
37
37
-
// ws.send(msg.sig)
38
38
-
// ws.send(msg.text)
39
39
-
// if (!msg.text) { ws.send(await bogbot.get(msg.opened.substring(13)))}
40
40
-
// }
41
41
-
//}
34
34
+
const log = await bogbot.query()
35
35
+
if (log) {
36
36
+
for (const msg of log) {
37
37
+
ws.send(msg.sig)
38
38
+
ws.send(msg.text)
39
39
+
if (!msg.text) { ws.send(await bogbot.get(msg.opened.substring(13)))}
40
40
+
}
41
41
+
}
42
42
}
43
43
44
44
ws.onmessage = async (m) => {