1 | var EventEmitter = require('events').EventEmitter;
|
2 |
|
3 | var Client = exports.Client = function(port, host) {
|
4 | EventEmitter.call(this);
|
5 | this.port = port;
|
6 | this.host = host;
|
7 | };
|
8 |
|
9 | Client.prototype = Object.create(EventEmitter.prototype);
|
10 |
|
11 | Client.prototype.request = function() {
|
12 | return new ClientRequest();
|
13 | };
|
14 |
|
15 | var ClientRequest = exports.ClientRequest = function() {
|
16 | EventEmitter.call(this);
|
17 | };
|
18 |
|
19 | ClientRequest.prototype = Object.create(EventEmitter.prototype);
|
20 |
|
21 | ClientRequest.prototype.write = function() {
|
22 | };
|
23 |
|
24 | ClientRequest.prototype.end = function() {
|
25 | };
|
26 |
|
27 | var ClientResponse = exports.ClientResponse = function() {
|
28 | EventEmitter.call(this);
|
29 | };
|
30 |
|
31 | ClientResponse.prototype = Object.create(EventEmitter.prototype);
|
32 |
|
33 | var LastFmRequest = exports.LastFmRequest = function() {
|
34 | EventEmitter.call(this);
|
35 | };
|
36 |
|
37 | LastFmRequest.prototype = Object.create(EventEmitter.prototype);
|