Options
All
  • Public
  • Public/Protected
  • All
Menu

A thin wrapper around isomorphic-ws' WebSocket class that adds

  • constant message/error/open/close handlers
  • explict connection via a connect() method
  • type support for events
  • handling of corner cases in the open and close behaviour

Hierarchy

  • SocketWrapper

Index

Constructors

Properties

Methods

Constructors

Properties

connected: Promise<void>

Methods

  • connect(): void
  • returns a promise that resolves when connection is open

    Returns void

  • disconnect(): void
  • Closes an established connection and aborts other connection states

    Returns void

  • send(data: string): Promise<void>

Generated using TypeDoc