mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 03:30:42 +00:00
format
This commit is contained in:
@@ -4,23 +4,19 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import * as WebSocket from 'ws';
|
import * as WebSocket from 'ws';
|
||||||
import type { MiUser } from '@/models/User.js';
|
|
||||||
import type { MiAccessToken } from '@/models/AccessToken.js';
|
|
||||||
import { NotificationService } from '@/core/NotificationService.js';
|
|
||||||
import { bindThis } from '@/decorators.js';
|
|
||||||
import { CacheService } from '@/core/CacheService.js';
|
|
||||||
import { MiFollowing, MiUserProfile } from '@/models/_.js';
|
|
||||||
import type { GlobalEvents, StreamEventEmitter } from '@/core/GlobalEventService.js';
|
|
||||||
import { ChannelFollowingService } from '@/core/ChannelFollowingService.js';
|
|
||||||
import { ChannelMutingService } from '@/core/ChannelMutingService.js';
|
|
||||||
import type { JsonObject, JsonValue } from '@/misc/json-value.js';
|
|
||||||
import { isJsonObject } from '@/misc/json-value.js';
|
|
||||||
import type { EventEmitter } from 'events';
|
|
||||||
import type Channel from './channel.js';
|
|
||||||
import type { ChannelConstructor } from './channel.js';
|
|
||||||
import type { ChannelRequest } from './channel.js';
|
|
||||||
import { ContextIdFactory, ModuleRef, REQUEST } from '@nestjs/core';
|
import { ContextIdFactory, ModuleRef, REQUEST } from '@nestjs/core';
|
||||||
import { Inject, Injectable, Scope } from '@nestjs/common';
|
import { Inject, Injectable, Scope } from '@nestjs/common';
|
||||||
|
import { isJsonObject } from '@/misc/json-value.js';
|
||||||
|
import type { JsonObject, JsonValue } from '@/misc/json-value.js';
|
||||||
|
import { ChannelMutingService } from '@/core/ChannelMutingService.js';
|
||||||
|
import { ChannelFollowingService } from '@/core/ChannelFollowingService.js';
|
||||||
|
import type { GlobalEvents, StreamEventEmitter } from '@/core/GlobalEventService.js';
|
||||||
|
import { MiFollowing, MiUserProfile } from '@/models/_.js';
|
||||||
|
import { CacheService } from '@/core/CacheService.js';
|
||||||
|
import { bindThis } from '@/decorators.js';
|
||||||
|
import { NotificationService } from '@/core/NotificationService.js';
|
||||||
|
import type { MiAccessToken } from '@/models/AccessToken.js';
|
||||||
|
import type { MiUser } from '@/models/User.js';
|
||||||
import { MainChannel } from '@/server/api/stream/channels/main.js';
|
import { MainChannel } from '@/server/api/stream/channels/main.js';
|
||||||
import { HomeTimelineChannel } from '@/server/api/stream/channels/home-timeline.js';
|
import { HomeTimelineChannel } from '@/server/api/stream/channels/home-timeline.js';
|
||||||
import { LocalTimelineChannel } from '@/server/api/stream/channels/local-timeline.js';
|
import { LocalTimelineChannel } from '@/server/api/stream/channels/local-timeline.js';
|
||||||
@@ -39,13 +35,17 @@ import { ChatUserChannel } from '@/server/api/stream/channels/chat-user.js';
|
|||||||
import { ChatRoomChannel } from '@/server/api/stream/channels/chat-room.js';
|
import { ChatRoomChannel } from '@/server/api/stream/channels/chat-room.js';
|
||||||
import { ReversiChannel } from '@/server/api/stream/channels/reversi.js';
|
import { ReversiChannel } from '@/server/api/stream/channels/reversi.js';
|
||||||
import { ReversiGameChannel } from '@/server/api/stream/channels/reversi-game.js';
|
import { ReversiGameChannel } from '@/server/api/stream/channels/reversi-game.js';
|
||||||
|
import type { ChannelRequest } from './channel.js';
|
||||||
|
import type { ChannelConstructor } from './channel.js';
|
||||||
|
import type Channel from './channel.js';
|
||||||
|
import type { EventEmitter } from 'events';
|
||||||
|
|
||||||
const MAX_CHANNELS_PER_CONNECTION = 32;
|
const MAX_CHANNELS_PER_CONNECTION = 32;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main stream connection
|
* Main stream connection
|
||||||
*/
|
*/
|
||||||
// eslint-disable-next-line import/no-default-export
|
|
||||||
@Injectable({ scope: Scope.TRANSIENT })
|
@Injectable({ scope: Scope.TRANSIENT })
|
||||||
export default class Connection {
|
export default class Connection {
|
||||||
public user?: MiUser;
|
public user?: MiUser;
|
||||||
|
|||||||
Reference in New Issue
Block a user