mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Remove process.EventEmitter usage for Node 7.x
process.EventEmitter has been deprecated and removed from Node.
This commit is contained in:
committed by
Damien Arrachequesne
parent
d25c5484c3
commit
9ad1fd2771
@@ -39,7 +39,7 @@ var Client = irc.Client = function(host, port) {
|
||||
this.user = null;
|
||||
this.real = null;
|
||||
}
|
||||
sys.inherits(Client, process.EventEmitter);
|
||||
sys.inherits(Client, require('events'));
|
||||
|
||||
Client.prototype.connect = function(nick, user, real) {
|
||||
var connection = tcp.createConnection(this.port, this.host);
|
||||
|
||||
Reference in New Issue
Block a user