|
|
@ -3,12 +3,17 @@ import { Microservice } from "@autoplex/microservice"; |
|
|
|
import { SOCKET_PATH } from "./constants"; |
|
|
|
import { ISerializedTorrent, ITorrent } from "./schema"; |
|
|
|
|
|
|
|
export abstract class IpcClient<M extends Microservice = Microservice> extends IpcClientService<M> |
|
|
|
export class IpcClient<M extends Microservice = Microservice> extends IpcClientService<M> |
|
|
|
{ |
|
|
|
/** |
|
|
|
* The name of the service |
|
|
|
*/ |
|
|
|
public readonly NAME = "Torrent"; |
|
|
|
|
|
|
|
/** |
|
|
|
* The path to the socket file |
|
|
|
*/ |
|
|
|
protected SOCKET_PATH = SOCKET_PATH; |
|
|
|
protected readonly SOCKET_PATH = SOCKET_PATH; |
|
|
|
|
|
|
|
/** |
|
|
|
* Add a torrent to the client |
|
|
|