-
Notifications
You must be signed in to change notification settings - Fork 3
Nick Riley edited this page Sep 19, 2015
·
4 revisions
List of command response codes and their
attributing event that will be fired;
you can add your own event listeners to
listen to these codes
-
object
Name | Type | Description |
---|---|---|
150 |
number |
dataPortReady |
220 |
number |
login |
226 |
number |
transferComplete |
227 |
number |
startPassive |
230 |
number |
ready |
250 |
number |
fileActionComplete [default: disabled] |
257 |
number |
data capture [default: disabled] |
331 |
number |
sendPass [default: disabled] |
500 |
number |
unkownCommand |
550 |
number |
transferError |
553 |
number |
transferError |
- Source:
Sets the cueDataTransfer so we know we are
specifically performing data fetching
- Source:
Emit an error on the FTP#socket object
- Source:
- FTP#socket#event:error
Log in to the FTP server with set configuration
- Source:
Emit a “ready” event on the FTP#socket object
- Source:
- FTP#socket#event:ready
Opens a passive (PASV) connection to the FTP server
with the data received from the socket that made the
“PASV” request
Name | Type | Description |
---|---|---|
data |
string |
The returned socket data |
- Source:
Emit a fileTransferComplete or dataTransferComplete event on the FTP#events object
- Source:
- FTP#event:dataTransferComplete
Emit an error on the FTP#socket object
- Source:
- FTP#socket#event:error
- fileTransferComplete
- queueEmpty
- error
- ready