mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-04 14:06:07 +00:00
15 lines
444 B
TypeScript
15 lines
444 B
TypeScript
import type { DeepPartial } from '../common';
|
|
import type { BaseClientOptions, StartOptions } from './base';
|
|
import { BaseClient } from './base';
|
|
|
|
export class HttpClient extends BaseClient {
|
|
constructor(options?: BaseClientOptions) {
|
|
super(options);
|
|
}
|
|
|
|
async start(options: DeepPartial<Omit<StartOptions, 'connection' | 'eventsDir'>> = {}) {
|
|
await super.start(options);
|
|
return this.execute(options.httpConnection);
|
|
}
|
|
}
|