diff --git a/TcpServer.js b/TcpServer.js index 8b6cab4..423183a 100644 --- a/TcpServer.js +++ b/TcpServer.js @@ -101,4 +101,7 @@ TcpServer.prototype.close = function(callback: ?() => void) { this._socket.end(); }; +// unimplemented net.Server apis +TcpServer.prototype.ref = TcpServer.prototype.unref = function() { /* nop */ }; + module.exports = TcpServer; diff --git a/TcpSocket.js b/TcpSocket.js index 9f80f42..8fbd9ee 100644 --- a/TcpSocket.js +++ b/TcpSocket.js @@ -339,4 +339,13 @@ TcpSocket.prototype._normalizeConnectArgs = function(args) { return typeof cb === 'function' ? [options, cb] : [options]; }; +// unimplemented net.Socket apis +TcpSocket.prototype.pause = +TcpSocket.prototype.resume = +TcpSocket.prototype.ref = +TcpSocket.prototype.unref = +TcpSocket.prototype.setNoDelay = +TcpSocket.prototype.setKeepAlive = +TcpSocket.prototype.setEncoding = function() { /* nop */ }; + module.exports = TcpSocket;