remove default export in streaming API

This commit is contained in:
Johann150 2023-01-10 20:30:47 +01:00
parent 8c2b7e20b2
commit 57d1af1117
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ import { StreamEventEmitter, StreamMessages } from './types.js';
/**
* Main stream connection
*/
export default class Connection {
export class Connection {
public user?: User;
public userProfile?: UserProfile | null;
public following: Set<User['id']> = new Set();

View file

@ -5,7 +5,7 @@ import * as websocket from 'websocket';
import { subscriber as redisClient } from '@/db/redis.js';
import { Users } from '@/models/index.js';
import MainStreamConnection from './stream/index.js';
import { Connection } from './stream/index.js';
import authenticate from './authenticate.js';
export const initializeStreamingServer = (server: http.Server): void => {
@ -42,7 +42,7 @@ export const initializeStreamingServer = (server: http.Server): void => {
redisClient.on('message', onRedisMessage);
const main = new MainStreamConnection(connection, ev, user, app);
const main = new Connection(connection, ev, user, app);
const intervalId = user ? setInterval(() => {
Users.update(user.id, {