This commit is contained in:
syuilo 2022-01-14 01:33:42 +09:00
parent cbce1242b9
commit 287f595239
4 changed files with 150 additions and 6 deletions

View file

@ -1,11 +1,14 @@
import { Endpoints } from './api.types';
import Stream from './streaming';
import Stream, { Connection } from './streaming';
import { Channels } from './streaming.types';
import { Acct } from './acct';
import * as consts from './consts';
export {
Endpoints,
Stream,
Connection as ChannelConnection,
Channels,
Acct,
};

View file

@ -256,7 +256,7 @@ class Pool {
}
}
abstract class Connection<Channel extends AnyOf<Channels> = any> extends EventEmitter<Channel['events']> {
export abstract class Connection<Channel extends AnyOf<Channels> = any> extends EventEmitter<Channel['events']> {
public channel: string;
protected stream: Stream;
public abstract id: string;