Options
All
  • Public
  • Public/Protected
  • All
Menu

@realmlib/net

Index

Enumerations

Classes

Interfaces

Variables

Functions

Object literals

Variables

Const INCOMING_KEY

INCOMING_KEY: "c79332b197f92ba85ed281a023" = "c79332b197f92ba85ed281a023"

The RC4 Private Key to decrypt incoming packet data. This key is a Hex String, so should be converted to a Buffer for use.

example

const key = Buffer.from(INCOMING_KEY, 'hex');

Const OUTGOING_KEY

OUTGOING_KEY: "6a39570cc9de4ec71d64821894" = "6a39570cc9de4ec71d64821894"

The RC4 Private Key used to encrypt outgoing packet. This key is a Hex String, so should be converted to a Buffer for use.

example

const key = Buffer.from(OUTGOING_KEY, 'hex');

Functions

createPacket

  • Creates the correct packet object for the given type.

    throws

    {Error} if the packet cannot be created.

    Parameters

    Returns Packet

Object literals

Const DEFAULT_RC4

DEFAULT_RC4: object

An RC4 configuration which is suitable for PacketIO instances being used as a client.

incomingKey

incomingKey: string = INCOMING_KEY

outgoingKey

outgoingKey: string = OUTGOING_KEY

Generated using TypeDoc