UNPKG

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