aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js
index e03af95a..d69068fc 100644
--- a/src/library.js
+++ b/src/library.js
@@ -6411,6 +6411,11 @@ LibraryManager.library = {
return ret;
},
+ shutdown: function(fd, how) {
+ Sockets.fds[fd].socket.close();
+ Sockets.fds[fd] = null;
+ },
+
// ==========================================================================
// emscripten.h
// ==========================================================================