enhance(frontend): Websocketを使用しないモードを実装

This commit is contained in:
kakkokari-gtyih
2024-06-22 14:52:16 +09:00
parent a252151d5d
commit f0b0be12b0
5 changed files with 90 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
import { type Endpoints } from './api.types.js';
import Stream, { Connection } from './streaming.js';
import { type StreamEvents } from './streaming.js';
import { type Channels } from './streaming.types.js';
import { type Acct } from './acct.js';
import * as consts from './consts.js';
@@ -8,6 +9,7 @@ export type {
Endpoints,
Channels,
Acct,
StreamEvents,
};
export {

View File

@@ -17,7 +17,7 @@ export function urlQuery(obj: Record<string, string | number | boolean | undefin
type AnyOf<T extends Record<any, any>> = T[keyof T];
type StreamEvents = {
export type StreamEvents = {
_connected_: void;
_disconnected_: void;
} & BroadcastEvents;