File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 4949 "socks" : " ^2.0.0" ,
5050 "string2compact" : " ^2.0.0" ,
5151 "unordered-array-remove" : " ^1.0.2" ,
52- "ws" : " ^7.4.5 "
52+ "ws" : " ^8.0.0 "
5353 },
5454 "devDependencies" : {
5555 "@mapbox/node-pre-gyp" : " 1.0.10" ,
Original file line number Diff line number Diff line change @@ -6,15 +6,14 @@ import http from 'http'
66import peerid from 'bittorrent-peerid'
77import series from 'run-series'
88import string2compact from 'string2compact'
9- import ws from 'ws'
9+ import { WebSocketServer } from 'ws'
1010
1111import common from './lib/common.js'
1212import Swarm from './lib/server/swarm.js'
1313import parseHttpRequest from './lib/server/parse-http.js'
1414import parseUdpRequest from './lib/server/parse-udp.js'
1515import parseWebSocketRequest from './lib/server/parse-websocket.js'
1616
17- const { Server : WebSocketServer } = ws
1817const debug = Debug ( 'bittorrent-tracker:server' )
1918const hasOwnProperty = Object . prototype . hasOwnProperty
2019
You can’t perform that action at this time.
0 commit comments