Skip to content

Commit afc251d

Browse files
authored
fix: ws imports (#449)
1 parent 8077b64 commit afc251d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@ import http from 'http'
66
import peerid from 'bittorrent-peerid'
77
import series from 'run-series'
88
import string2compact from 'string2compact'
9-
import ws from 'ws'
9+
import { WebSocketServer } from 'ws'
1010

1111
import common from './lib/common.js'
1212
import Swarm from './lib/server/swarm.js'
1313
import parseHttpRequest from './lib/server/parse-http.js'
1414
import parseUdpRequest from './lib/server/parse-udp.js'
1515
import parseWebSocketRequest from './lib/server/parse-websocket.js'
1616

17-
const { Server: WebSocketServer } = ws
1817
const debug = Debug('bittorrent-tracker:server')
1918
const hasOwnProperty = Object.prototype.hasOwnProperty
2019

0 commit comments

Comments
 (0)