外观
raw_packet_send API
模块说明
text
Prepare one bounded raw frame for the existing durable managed dispatcher.MAX_RAW_PACKET_BYTES
python
MAX_RAW_PACKET_BYTES = 128 << 10RAW_PACKET_OPERATION
python
RAW_PACKET_OPERATION = 'framework.packet.send_raw'RawPacketSender
python
class RawPacketSenderSDK 说明:
text
No queue or retry. Retain the prepared intent before calling submit.
Frames contain the decrypted, decompressed packet header and body, without
RakNet, batch length, compression or encryption wrappers. Only the current
bot-to-server connection is supported. Connection IDs come from observation;
a reconnect makes a prepared intent stale. Do not replace its connection,
key or deadline after uncertain admission.RawPacketSender.__init__
python
def __init__(self, operations)RawPacketSender.prepare
python
def prepare(self, frame, *, connection_id, idempotency_key, deadline)RawPacketSender.submit
python
async def submit(self, intent, *, timeout=10)RawPacketSender.operations
python
self.operations公开实例属性,在 __init__ 中设置。