atproto explorer
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add #sync events

Juliet 3e503265 946e4623

+21
+11
src/utils/firehose.ts
··· 108 108 case "com.atproto.sync.subscribeRepos#commit": 109 109 this.emit("commit", message); 110 110 break; 111 + case "com.atproto.sync.subscribeRepos#sync": 112 + this.emit("sync", message); 113 + break; 111 114 default: 112 115 this.emit("unknown", message); 113 116 break; ··· 166 169 listener: ( 167 170 message: ComAtprotoSyncSubscribeRepos.Account & { 168 171 $type: "com.atproto.sync.subscribeRepos#account"; 172 + }, 173 + ) => void, 174 + ): this; 175 + override on( 176 + event: "sync", 177 + listener: ( 178 + message: ComAtprotoSyncSubscribeRepos.Sync & { 179 + $type: "com.atproto.sync.subscribeRepos#sync"; 169 180 }, 170 181 ) => void, 171 182 ): this;
+10
src/views/stream.tsx
··· 115 115 firehose.on("account", (account) => { 116 116 setRecords(records().concat(account).slice(-LIMIT)); 117 117 }); 118 + firehose.on("sync", (sync) => { 119 + const event = { 120 + $type: sync.$type, 121 + did: sync.did, 122 + rev: sync.rev, 123 + seq: sync.seq, 124 + time: sync.time, 125 + }; 126 + setRecords(records().concat(event).slice(-LIMIT)); 127 + }); 118 128 firehose.start(); 119 129 } 120 130 };