Skip to content

Commit

Permalink
add dist
Browse files Browse the repository at this point in the history
  • Loading branch information
snowinszu committed Oct 5, 2023
1 parent 2579109 commit 26ca4c5
Show file tree
Hide file tree
Showing 11 changed files with 970 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/node_modules
/dist
/test_dist
/coverage
/.nyc_output
Expand Down
37 changes: 37 additions & 0 deletions dist/fast-tracker.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**
* Copyright 2019 Novage LLC.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Tracker, PeerContext } from "./tracker";
interface Settings {
maxOffers: number;
announceInterval: number;
}
export declare class FastTracker implements Tracker {
#private;
readonly settings: Settings;
constructor(settings?: Partial<Settings>);
get swarms(): ReadonlyMap<string, {
peers: readonly PeerContext[];
}>;
processMessage(jsonObject: object, peer: PeerContext): void;
disconnectPeer(peer: PeerContext): void;
private processAnnounce;
private addPeerToSwarm;
private sendOffersToPeers;
private processAnswer;
private processStop;
private processScrape;
}
export {};
Loading

0 comments on commit 26ca4c5

Please sign in to comment.