add nodejs missing Socket.unref() and Socket.ref()

see http://nodejs.org/dist/v0.10.1/docs/api/net.html#net_socket_unref
This commit is contained in:
heroboy 2014-10-10 14:35:57 +08:00
parent aeedcbf5e5
commit f8cc8f8724

3
node/node.d.ts vendored
View File

@ -720,6 +720,9 @@ declare module "net" {
setNoDelay(noDelay?: boolean): void;
setKeepAlive(enable?: boolean, initialDelay?: number): void;
address(): { port: number; family: string; address: string; };
unref(): void;
ref(): void;
remoteAddress: string;
remotePort: number;
bytesRead: number;