on_data_packet_out Event
Fired when sending a data packet to the server.
Syntax
class ServerDataPacketOutEventParams(object): @property def data_packet() -> bytes: ... # In class Server: @property def on_data_packet_out() -> Callable[[ServerDataPacketOutEventParams], None]: ... @on_data_packet_out.setter def on_data_packet_out(event_hook: Callable[[ServerDataPacketOutEventParams], None]) -> None: ...
Remarks
This event fires right before each data packet is sent. The entire data packet (including all framing and error detection characters) is contained in the DataPacket parameter. This parameter may be inspected for advanced troubleshooting, or may be modified to support additional features beyond the scope of this component.