16 lines
412 B
Python
16 lines
412 B
Python
from .client_base import ClientBase
|
|
from .packet import packet_handler, oPacket
|
|
from .opcodes import RecvOps, SendOps
|
|
|
|
|
|
class Client(ClientBase):
|
|
|
|
async def begin(self):
|
|
# opkt = oPacket(SendOps.LOGIN_PASSWORD)
|
|
...
|
|
|
|
@packet_handler(RecvOps.PING)
|
|
async def pong(self, ipkt):
|
|
print("Sending PONG packet")
|
|
opkt = oPacket(SendOps.PONG)
|
|
await self.send_packet(opkt) |