aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/extra-utils/socket/socket-io.ts
blob: 854ab71af1b19b8692399204289f781538a1a680 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                              
import * as io from 'socket.io-client'

function getUserNotificationSocket (serverUrl: string, accessToken: string) {
  return io(serverUrl + '/user-notifications', {
    query: { accessToken }
  })
}

// ---------------------------------------------------------------------------

export {
  getUserNotificationSocket
}