From bf54587a3e2ad9c2c186828f2a5682b91ee2cc00 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 17 Dec 2021 09:29:23 +0100 Subject: shared/ typescript types dir server-commands --- shared/extra-utils/socket/index.ts | 1 - shared/extra-utils/socket/socket-io-command.ts | 15 --------------- 2 files changed, 16 deletions(-) delete mode 100644 shared/extra-utils/socket/index.ts delete mode 100644 shared/extra-utils/socket/socket-io-command.ts (limited to 'shared/extra-utils/socket') diff --git a/shared/extra-utils/socket/index.ts b/shared/extra-utils/socket/index.ts deleted file mode 100644 index 594329b2f..000000000 --- a/shared/extra-utils/socket/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './socket-io-command' diff --git a/shared/extra-utils/socket/socket-io-command.ts b/shared/extra-utils/socket/socket-io-command.ts deleted file mode 100644 index c277ead28..000000000 --- a/shared/extra-utils/socket/socket-io-command.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { io } from 'socket.io-client' -import { AbstractCommand, OverrideCommandOptions } from '../shared' - -export class SocketIOCommand extends AbstractCommand { - - getUserNotificationSocket (options: OverrideCommandOptions = {}) { - return io(this.server.url + '/user-notifications', { - query: { accessToken: options.token ?? this.server.accessToken } - }) - } - - getLiveNotificationSocket () { - return io(this.server.url + '/live-videos') - } -} -- cgit v1.2.3