1 import { io } from 'socket.io-client'
2 import { AbstractCommand, OverrideCommandOptions } from '../shared'
4 export class SocketIOCommand extends AbstractCommand {
6 getUserNotificationSocket (options: OverrideCommandOptions = {}) {
7 return io(this.server.url + '/user-notifications', {
8 query: { accessToken: options.token ?? this.server.accessToken }
12 getLiveNotificationSocket () {
13 return io(this.server.url + '/live-videos')