1 | var Agent = require('http').Agent;
|
2 | var util = require('util');
|
3 |
|
4 | var SpdyAgent = module.exports = function(options) {
|
5 | this.socket = options.socket;
|
6 | this.host = options.host;
|
7 | this.port = options.port;
|
8 | Agent.call(this, options);
|
9 | };
|
10 | util.inherits(SpdyAgent, Agent);
|
11 |
|
12 | SpdyAgent.prototype.createConnection = function(options) {
|
13 | return options.socket;
|
14 | };
|