From bd54ad1953ee0484ba90cf5f588f4c282048f368 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 4 Nov 2020 15:31:32 +0100 Subject: Add live notification tests --- shared/extra-utils/socket/socket-io.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'shared/extra-utils/socket') 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) { }) } +function getLiveNotificationSocket (serverUrl: string) { + return io(serverUrl + '/live-videos') +} + // --------------------------------------------------------------------------- export { - getUserNotificationSocket + getUserNotificationSocket, + getLiveNotificationSocket } -- cgit v1.2.3