diff options
Diffstat (limited to 'server/lib/peertube-socket.ts')
-rw-r--r-- | server/lib/peertube-socket.ts | 3 |
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 @@ | |||
1 | import { Socket } from 'dgram' | ||
2 | import { Server } from 'http' | 1 | import { Server } from 'http' |
3 | import * as SocketIO from 'socket.io' | 2 | import * as SocketIO from 'socket.io' |
4 | import { MVideo } from '@server/types/models' | 3 | import { 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) |