diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-19 08:58:34 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-11-19 09:07:20 +0100 |
commit | fce7fe04eed39e23e76717085e92118e963def81 (patch) | |
tree | 767e5c92cbed548d2b5fb27ce1e6236da4ebdbcf /server/lib/peertube-socket.ts | |
parent | 4ddcb7c3bad4e98d05d25298f7f11353a639b360 (diff) | |
download | PeerTube-fce7fe04eed39e23e76717085e92118e963def81.tar.gz PeerTube-fce7fe04eed39e23e76717085e92118e963def81.tar.zst PeerTube-fce7fe04eed39e23e76717085e92118e963def81.zip |
Update server dependencies
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) |