enhance(frontend): Websocketを使用しないモードを実装
This commit is contained in:
parent
a252151d5d
commit
f0b0be12b0
5 changed files with 90 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue