mirror of https://github.com/Chocobozzz/PeerTube
14 lines
321 B
TypeScript
14 lines
321 B
TypeScript
import * as io from 'socket.io-client'
|
|
|
|
function getUserNotificationSocket (serverUrl: string, accessToken: string) {
|
|
return io(serverUrl + '/user-notifications', {
|
|
query: { accessToken }
|
|
})
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
export {
|
|
getUserNotificationSocket
|
|
}
|