🔌 Working UI integration airdcpp-socket
This commit is contained in:
19
src/client/services/DcppSearchService.ts
Normal file
19
src/client/services/DcppSearchService.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Socket } from "airdcpp-apisocket";
|
||||
|
||||
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, window.WebSocket as any);
|
||||
type SocketType = typeof APISocket;
|
||||
export { SocketType as APISocket };
|
||||
|
||||
export default APISocket;
|
||||
Reference in New Issue
Block a user