Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultSocket

Hierarchy

  • DefaultSocket

Implements

Index

Constructors

constructor

Properties

Optional disconnectInitiator

disconnectInitiator: "client" | "server"

isConnected

isConnected: boolean = false

Optional socket

socket: WebSocket

Methods

connect

disconnect

  • disconnect(): Promise<void>

send

  • send<T>(message: T): Promise<void>

setApiToken

  • setApiToken(apiToken: string): void

Generated using TypeDoc