Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LikeRTCDataChannelOrWebSocket

An interface that is satisfied by both WebSocket and RTCDataChannel

Hierarchy

  • LikeRTCDataChannelOrWebSocket

Implemented by

Index

Properties

Methods

Properties

onclose

onclose: null | ((e: any) => any)

onerror

onerror: null | ((e: ErrorEvent | RTCErrorEvent) => any)

onmessage

onmessage: null | ((ev: MessageEvent<any>) => any)

Methods

close

  • close(): void
  • Returns void

send

  • send(data: ArrayBuffer): void
  • Parameters

    • data: ArrayBuffer

    Returns void

Generated using TypeDoc