mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-03 09:06:17 +02:00
refactor: Use ESM (#8358)
* wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import * as http from 'http';
|
||||
import * as websocket from 'websocket';
|
||||
|
||||
import MainStreamConnection from './stream/index';
|
||||
import MainStreamConnection from './stream/index.js';
|
||||
import { ParsedUrlQuery } from 'querystring';
|
||||
import authenticate from './authenticate';
|
||||
import authenticate from './authenticate.js';
|
||||
import { EventEmitter } from 'events';
|
||||
import { subsdcriber as redisClient } from '../../db/redis';
|
||||
import { Users } from '@/models/index';
|
||||
import { subsdcriber as redisClient } from '../../db/redis.js';
|
||||
import { Users } from '@/models/index.js';
|
||||
|
||||
module.exports = (server: http.Server) => {
|
||||
export const initializeStreamingServer = (server: http.Server) => {
|
||||
// Init websocket server
|
||||
const ws = new websocket.server({
|
||||
httpServer: server,
|
||||
|
||||
Reference in New Issue
Block a user