mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-28 11:34:01 -06:00
19 lines
449 B
TypeScript
19 lines
449 B
TypeScript
import { io } from 'socket.io-client'
|
|
|
|
function getUserNotificationSocket (serverUrl: string, accessToken: string) {
|
|
return io(serverUrl + '/user-notifications', {
|
|
query: { accessToken }
|
|
})
|
|
}
|
|
|
|
function getLiveNotificationSocket (serverUrl: string) {
|
|
return io(serverUrl + '/live-videos')
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
export {
|
|
getUserNotificationSocket,
|
|
getLiveNotificationSocket
|
|
}
|