Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Network

The Network aptitude provides access to network calls through Olive Helps

Index

Type aliases

MessageType

MessageTypeBinary

MessageTypeBinary: 2

MessageTypeText

MessageTypeText: 1

Methods

decode

  • decode(encodedValue: Uint8Array, encoding: string): Promise<string>
  • Decoding provided value

    Parameters

    • encodedValue: Uint8Array

      Specified encoded value to decode

    • encoding: string

    Returns Promise<string>

    A promise resolving with the decoded text

encode

  • encode(text: string, encoding: string): Promise<Uint8Array>
  • Encoding provided text

    Parameters

    • text: string

      Specified text to encode

    • encoding: string

    Returns Promise<Uint8Array>

    A promise resolving with the encoded Uint8Array

httpRequest

  • Generates a HTTP request with the provided configuration.

    Parameters

    Returns Promise<HTTPResponse>

    A Promise resolving with the response.

webSocketConnect

Generated using TypeDoc