1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00

shared/ typescript types dir server-commands

This commit is contained in:
Chocobozzz 2021-12-17 09:29:23 +01:00
parent 6b5f72beda
commit bf54587a3e
No known key found for this signature in database
GPG key ID: 583A612D890159BE
242 changed files with 228 additions and 172 deletions

View file

@ -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')
}
}