1
0
Fork 0
peertube/shared/extra-utils/socket/socket-io.ts

14 lines
321 B
TypeScript
Raw Normal View History

2018-12-26 04:36:24 -05:00
import * as io from 'socket.io-client'
function getUserNotificationSocket (serverUrl: string, accessToken: string) {
return io(serverUrl + '/user-notifications', {
query: { accessToken }
})
}
// ---------------------------------------------------------------------------
export {
getUserNotificationSocket
}