Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ServerSocket

Hierarchy

  • SocketHandler
    • ServerSocket

Index

Constructors

Properties

name: null | string

The name of this socket.

since

0.0.1

queue: Queue = ...

The incoming message queue for this handler.

since

0.1.0

server: Server
socket: Socket

The internal socket that connects Veza to the network.

since

0.0.1

status: ServerSocketStatus = ServerSocketStatus.Disconnected

Methods

  • _handleMessage(message: RawMessage): null | Readonly<NodeMessage>
  • _onClose(): void
  • _onData(data: Uint8Array): void
  • disconnect(close?: boolean): boolean
  • Disconnect from the socket, this will also reject all messages

    Parameters

    • Optional close: boolean

    Returns boolean

  • send(data: any, options?: SendOptions): Promise<unknown>
  • setup(): Promise<boolean>

Generated using TypeDoc