Skip to main content
Module

x/grm/mod.ts>PacketCodec

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

Constructors

new
PacketCodec(connection: Connection)

Properties

private
_conn: Connection

Methods

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