Skip to content

Implement Socket.setTimeout #27

@tjanczuk

Description

@tjanczuk
+Socket.prototype.setTimeout = function (timeout, callback) {
+    // TODO: implement full Socket.setTimeout semantics 
+    // http://nodejs.org/api/net.html#net_socket_settimeout_timeout_callback
+
+    if (timeout !== 0) {
+        throw new Error('Not implemented. Only timeout value of 0 is currently accepted.')
+    }
+};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions