aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/peertube-socket.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/peertube-socket.ts')
-rw-r--r--server/lib/peertube-socket.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/lib/peertube-socket.ts b/server/lib/peertube-socket.ts
index c4df399ca..5fc5bc20b 100644
--- a/server/lib/peertube-socket.ts
+++ b/server/lib/peertube-socket.ts
@@ -1,4 +1,3 @@
1import { Socket } from 'dgram'
2import { Server } from 'http' 1import { Server } from 'http'
3import * as SocketIO from 'socket.io' 2import * as SocketIO from 'socket.io'
4import { MVideo } from '@server/types/models' 3import { MVideo } from '@server/types/models'
@@ -18,7 +17,7 @@ class PeerTubeSocket {
18 private constructor () {} 17 private constructor () {}
19 18
20 init (server: Server) { 19 init (server: Server) {
21 const io = SocketIO(server) 20 const io = new SocketIO.Server(server)
22 21
23 io.of('/user-notifications') 22 io.of('/user-notifications')
24 .use(authenticateSocket) 23 .use(authenticateSocket)