mirror of
https://github.com/status-im/react-native-tcp.git
synced 2025-02-28 10:00:26 +00:00
stub out missing net.js apis
This commit is contained in:
parent
0b9c8f3464
commit
5c284e5622
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user