SecureBlackbox 2020 Node.js Edition

Questions / Feedback?

BeforeSendReply Event

Notifies the application of a command reply being sent.

Syntax

ftpserver.on('BeforeSendReply', [callback])

Callback

The 'callback' is called when the 'BeforeSendReply' event is emited.

function(e){ }

The argument 'e' has the following properties:

e.connectionID
e.code
e.reply
e.command

Remarks

The class fires this event to tell the application that a command reply is about to be sent. The Command parameter indicates the command that induced the reply, and Code and Reply indicate the pre-generated response.

You can alter the response parameters in your code to send bespoke replies.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 Node.js Edition - Version 20.0 [Build 8165]