We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec30a5a commit b07e018Copy full SHA for b07e018
src/connection.js
@@ -1,15 +1,17 @@
1
const _ = require('lodash');
2
const uuid = require('uuid');
3
const Promise = require('bluebird');
4
+const EventEmitter = require('events');
5
6
const BaseConnector = require('./connector/base');
7
const FileSystem = require('./fs');
8
const Commands = require('./commands');
9
const errors = require('./errors');
10
const DEFAULT_MESSAGE = require('./messages');
11
-class FtpConnection {
12
+class FtpConnection extends EventEmitter {
13
constructor(server, options) {
14
+ super();
15
this.server = server;
16
this.id = uuid.v4();
17
this.log = options.log.child({id: this.id, ip: this.ip});
0 commit comments