atproto explorer
0
fork

Configure Feed

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

remove deprecated events

Juliet 9ebf7b1e 3853cdaa

-45
-45
src/lib/firehose.ts
··· 96 96 this.cursor = `${message.seq}`; 97 97 } 98 98 switch (message.$type) { 99 - case "com.atproto.sync.subscribeRepos#handle": 100 - this.emit("handle", message); 101 - break; 102 - case "com.atproto.sync.subscribeRepos#tombstone": 103 - this.emit("tombstone", message); 104 - break; 105 - case "com.atproto.sync.subscribeRepos#migrate": 106 - this.emit("migrate", message); 107 - break; 108 99 case "com.atproto.sync.subscribeRepos#identity": 109 100 this.emit("identity", message); 110 101 break; ··· 158 149 ): this; 159 150 /** Emitted when an unknown message is received. */ 160 151 override on(event: "unknown", listener: (message: unknown) => void): this; 161 - /** 162 - * Represents an update of an account's handle, or transition to/from invalid state. 163 - * @deprecated Use on("identity") instead. 164 - */ 165 - override on( 166 - event: "handle", 167 - listener: ( 168 - message: ComAtprotoSyncSubscribeRepos.Handle & { 169 - $type: "com.atproto.sync.subscribeRepos#handle"; 170 - }, 171 - ) => void, 172 - ): this; 173 - /** 174 - * Represents an account moving from one PDS instance to another. 175 - * @deprecated Use on("account") instead. 176 - */ 177 - override on( 178 - event: "migrate", 179 - listener: ( 180 - message: ComAtprotoSyncSubscribeRepos.Migrate & { 181 - $type: "com.atproto.sync.subscribeRepos#migrate"; 182 - }, 183 - ) => void, 184 - ): this; 185 - /** 186 - * Indicates that an account has been deleted. 187 - * @deprecated Use on("account") instead. 188 - */ 189 - override on( 190 - event: "tombstone", 191 - listener: ( 192 - message: ComAtprotoSyncSubscribeRepos.Tombstone & { 193 - $type: "com.atproto.sync.subscribeRepos#tombstone"; 194 - }, 195 - ) => void, 196 - ): this; 197 152 /** 198 153 * Represents a change to an account's identity. 199 154 * Could be an updated handle, signing key, or pds hosting endpoint.