🔌 AirDC++ socket scaffold

This commit is contained in:
2021-08-13 08:47:11 -07:00
parent 9aee8176b0
commit a20da523b2
2 changed files with 1 additions and 1 deletions

View File

@@ -1,20 +0,0 @@
import { Socket } from "airdcpp-apisocket";
import WebSocket from "ws";
const options = {
url: "wss://sab.rishighan.com/api/v1/",
autoReconnect: false,
reconnectInterval: 5,
logLevel: "verbose",
ignoredListenerEvents: [
"transfer_statistics",
"hash_statistics",
"hub_counts_updated",
],
};
const APISocket = Socket(options, WebSocket as any);
type SocketType = typeof APISocket;
export { SocketType as APISocket };
export default APISocket;