aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/peertube-socket.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-19 08:58:34 +0100
committerChocobozzz <me@florianbigard.com>2020-11-19 09:07:20 +0100
commitfce7fe04eed39e23e76717085e92118e963def81 (patch)
tree767e5c92cbed548d2b5fb27ce1e6236da4ebdbcf /server/lib/peertube-socket.ts
parent4ddcb7c3bad4e98d05d25298f7f11353a639b360 (diff)
downloadPeerTube-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.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)