summaryrefslogtreecommitdiff
path: root/ext/net/01_net.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/net/01_net.js')
-rw-r--r--ext/net/01_net.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/net/01_net.js b/ext/net/01_net.js
index 4a4005954..6f54ec999 100644
--- a/ext/net/01_net.js
+++ b/ext/net/01_net.js
@@ -95,6 +95,14 @@
closeWrite() {
return shutdown(this.rid);
}
+
+ setNoDelay(nodelay = true) {
+ return core.opSync("op_set_nodelay", this.rid, nodelay);
+ }
+
+ setKeepAlive(keepalive = true) {
+ return core.opSync("op_set_keepalive", this.rid, keepalive);
+ }
}
class Listener {