Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Serializer

Index

Properties

HEADER_LENGTH

HEADER_LENGTH: number = 1

Methods

Private _binaryDecode

  • _binaryDecode(buffer: ArrayBuffer): { event: string; payload: object; ref: null; topic: string }
  • Parameters

    • buffer: ArrayBuffer

    Returns { event: string; payload: object; ref: null; topic: string }

    • event: string
    • payload: object
    • ref: null
    • topic: string

Private _decodeBroadcast

  • _decodeBroadcast(buffer: ArrayBuffer, view: DataView, decoder: TextDecoder): { event: string; payload: object; ref: null; topic: string }
  • Parameters

    • buffer: ArrayBuffer
    • view: DataView
    • decoder: TextDecoder

    Returns { event: string; payload: object; ref: null; topic: string }

    • event: string
    • payload: object
    • ref: null
    • topic: string

decode

  • decode(rawPayload: ArrayBuffer | string, callback: Function): any
  • Parameters

    • rawPayload: ArrayBuffer | string
    • callback: Function

    Returns any

Legend

  • Constructor
  • Property
  • Method
  • Private method

Generated using TypeDoc