Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grm/src/mod.ts>network.PacketCodec

MTProto API Client for Deno 🦕
Go to Latest
class network.PacketCodec
Re-export
import { network } from "https://deno.land/x/grm@0.8.0/src/mod.ts";
const { PacketCodec } = network;

Constructors

new
PacketCodec(connection: Connection)

Properties

private
_conn: Connection

Methods

encodePacket(_data: Buffer): Buffer
readPacket(_reader: PromisedNetSockets | PromisedWebSockets): Promise<Buffer>