We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8077b64 commit afc251dCopy full SHA for afc251d
server.js
@@ -6,15 +6,14 @@ import http from 'http'
6
import peerid from 'bittorrent-peerid'
7
import series from 'run-series'
8
import string2compact from 'string2compact'
9
-import ws from 'ws'
+import { WebSocketServer } from 'ws'
10
11
import common from './lib/common.js'
12
import Swarm from './lib/server/swarm.js'
13
import parseHttpRequest from './lib/server/parse-http.js'
14
import parseUdpRequest from './lib/server/parse-udp.js'
15
import parseWebSocketRequest from './lib/server/parse-websocket.js'
16
17
-const { Server: WebSocketServer } = ws
18
const debug = Debug('bittorrent-tracker:server')
19
const hasOwnProperty = Object.prototype.hasOwnProperty
20
0 commit comments