Back to product page

PreTranslateCommand callback method


Called before new command leaves client socket..

Syntax

  • Basic
object.PreTranslateCommand (Owner, Command)
The PreTranslateCommand(object,Owner,Command) syntax has these parts:
objectAn expression evaluating to an object of type IwodXMPPNotify
OwnerAn expression evaluating to an object of type wodXMPP
CommandA String value. Command that is sent to the server.

Remarks

This method is called only if you implemented IwodXMPPNotify interface in your application, and wodXMPP.Notification property has received reference to instance of your implementation.

This notification method can be used for monitoring commands that are sent to server before they are actually transmitted. At this point, you can change this data and it will be sent as you define it - without wodXMPP knowing anything about it. Remote side will receive your changes.

Beware - what you're doing here is dangerous for wodXMPP. You may break its internal mechanism of behavior, and strange results may occur. But - to provide you with more freedom over what's going on 'under the hood', we have provided this notification method for advanced users.

Platforms

Windows