MCPcopy Create free account
hub / github.com/PrismarineJS/node-minecraft-protocol / acknowledgePrior

Method acknowledgePrior

src/server/chat.js:250–259  ·  view source on GitHub ↗
(sender, signature)

Source from the content-addressed store, hash-verified

248 }
249
250 acknowledgePrior (sender, signature) {
251 for (let i = 0; i < this.length; i++) {
252 const [a, b] = this[i]
253 delete this.m[a]
254 if (a === sender && b === signature) {
255 this.splice(0, i)
256 break
257 }
258 }
259 }
260
261 // Once we've acknowledged that the client has saw the messages we sent,
262 // we delete it from our map & pending list. However, the client may keep it in

Callers 1

validateLastMessagesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected