onBeforeSendReply (event)
Notifies the application of a command reply being sent.
Syntax
- (void)onBeforeSendReply:(long long)connectionID :(int*)code :(NSString**)reply :(NSString*)command;
func onBeforeSendReply(_ connectionID: Int64, _ code: inout Int32, _ reply: inout NSString?, _ command: String)
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.