mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Add user notification base code
This commit is contained in:
parent
1de1d05f4c
commit
cef534ed53
52 changed files with 2479 additions and 141 deletions
13
shared/utils/socket/socket-io.ts
Normal file
13
shared/utils/socket/socket-io.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import * as io from 'socket.io-client'
|
||||
|
||||
function getUserNotificationSocket (serverUrl: string, accessToken: string) {
|
||||
return io(serverUrl + '/user-notifications', {
|
||||
query: { accessToken }
|
||||
})
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
getUserNotificationSocket
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue