-import * as io from 'socket.io-client'
+import { io } from 'socket.io-client'
function getUserNotificationSocket (serverUrl: string, accessToken: string) {
return io(serverUrl + '/user-notifications', {
})
}
+function getLiveNotificationSocket (serverUrl: string) {
+ return io(serverUrl + '/live-videos')
+}
+
// ---------------------------------------------------------------------------
export {
- getUserNotificationSocket
+ getUserNotificationSocket,
+ getLiveNotificationSocket
}