Additional changes for the merge

This commit is contained in:
Kagami Sascha Rosylight
2023-03-25 08:13:30 +01:00
parent 3b524f32bf
commit efb5e1d1cc
27 changed files with 1048 additions and 11178 deletions

View File

@@ -1,7 +1,7 @@
import autobind from 'autobind-decorator';
import { EventEmitter } from 'eventemitter3';
import ReconnectingWebsocket from 'reconnecting-websocket';
import { BroadcastEvents, Channels } from './streaming.types';
import type { BroadcastEvents, Channels } from './streaming.types';
export function urlQuery(obj: Record<string, string | number | boolean | undefined>): string {
const params = Object.entries(obj)
@@ -40,7 +40,7 @@ export default class Stream extends EventEmitter<StreamEvents> {
const query = urlQuery({
i: user?.token,
// To prevent cache of an HTML such as error screen
_t: Date.now(),
});