Skip to content

Commit

Permalink
setTimeout()
Browse files Browse the repository at this point in the history
  • Loading branch information
Havvy committed Dec 30, 2013
1 parent 339dfaf commit 0d65a5e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ will otherwise return false.
This method returns the realname (also called gecos) of the connection.
### setTimeout(timeout, [callback]) ###
As per the implementation socket. See
[Node documentation](http://nodejs.org/api/net.html#net_socket_settimeout_timeout_callback)
for details.
## Events ##
The basic-irc-socket is an event emitter. It emits five events.
Expand Down
4 changes: 4 additions & 0 deletions irc-socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ Socket.prototype = create(events.EventEmitter.prototype, {
this.impl.write(message + '\r\n', 'utf-8');
},

setTimeout: function (timeout, callback) {
this.impl.setTimeout(timeout, callback);
},

isConnected : function () {
return this.connected;
},
Expand Down

0 comments on commit 0d65a5e

Please sign in to comment.