diff --git a/lib/device-sockets/ios/socket-proxy-factory.ts b/lib/device-sockets/ios/socket-proxy-factory.ts index a4365c6163..7c720fab88 100644 --- a/lib/device-sockets/ios/socket-proxy-factory.ts +++ b/lib/device-sockets/ios/socket-proxy-factory.ts @@ -78,7 +78,7 @@ export class SocketProxyFactory implements ISocketProxyFactory { // We store the socket that connects us to the device in the upgrade request object itself and later on retrieve it // in the connection callback. - let server = ws.createServer({ + let server = new ws.Server({ port: localPort, verifyClient: (info: any, callback: Function) => { this.$logger.info("Frontend client connected."); diff --git a/package.json b/package.json index 6aeb595445..d9fdc42b36 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "dependencies": { "bplist-parser": "0.1.0", "bufferpack": "0.0.6", - "bufferutil": "https://github.com/telerik/bufferutil/tarball/v1.0.1.5", "byline": "4.2.1", "chalk": "1.1.0", "chokidar": "^1.6.1", @@ -70,10 +69,9 @@ "source-map": "0.5.6", "tabtab": "https://github.com/Icenium/node-tabtab/tarball/master", "temp": "0.8.3", - "utf-8-validate": "https://github.com/telerik/utf-8-validate/tarball/v1.0.1.5", "uuid": "3.0.1", "winreg": "0.0.17", - "ws": "0.7.1", + "ws": "2.2.0", "xcode": "https://github.com/NativeScript/node-xcode/archive/1.4.0.tar.gz", "xmldom": "0.1.21", "xmlhttprequest": "https://github.com/telerik/node-XMLHttpRequest/tarball/master",