aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/socket/socket-io.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/socket/socket-io.ts')
-rw-r--r--shared/extra-utils/socket/socket-io.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/shared/extra-utils/socket/socket-io.ts b/shared/extra-utils/socket/socket-io.ts
index 854ab71af..66099464f 100644
--- a/shared/extra-utils/socket/socket-io.ts
+++ b/shared/extra-utils/socket/socket-io.ts
@@ -6,8 +6,13 @@ function getUserNotificationSocket (serverUrl: string, accessToken: string) {
6 }) 6 })
7} 7}
8 8
9function getLiveNotificationSocket (serverUrl: string) {
10 return io(serverUrl + '/live-videos')
11}
12
9// --------------------------------------------------------------------------- 13// ---------------------------------------------------------------------------
10 14
11export { 15export {
12 getUserNotificationSocket 16 getUserNotificationSocket,
17 getLiveNotificationSocket
13} 18}