Back to product page

PreTranslateCommand event


Fires before the command is sent to the server.

Syntax

  • Basic
Private Sub object_PreTranslateCommand (ByRef Command)
The PreTranslateCommand(Command) syntax has these parts:
CommandA String value. Command that is sent to the server.

Remarks

This event 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 event for advanced users.

Platforms

Windows