Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AnnounceEvent

import { AnnounceEvent } from "https://raw.githubusercontent.com/rclarey/bt/master/mod.ts";
enum AnnounceEvent {
empty = "empty",
started = "started",
completed = "completed",
stopped = "stopped",
}

§Members

§
AnnounceEvent.completed = "completed"
[src]

Must be sent to the tracker when the download completes, but not if the download was already complete when the client started

§
AnnounceEvent.empty = "empty"
[src]

Indicates the announce request is one performed at regular intervals

§
AnnounceEvent.started = "started"
[src]

Must be sent with the first request to the tracker

§
AnnounceEvent.stopped = "stopped"
[src]

Must be sent if the client is shutting down gracefully