Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SocketWrapper

A wrapper for a Socket to provide a unique identifer for the socket.

Hierarchy

  • SocketWrapper

Index

Constructors

Properties

Methods

Constructors

constructor

  • Creates a new socket wrapper with the given id and socket.

    Parameters

    • id: number

      The id of the socket.

    • socket: Socket

      The socket to wrap.

    Returns SocketWrapper

Properties

id

id: number

The unique identifier of this socket.

socket

socket: Socket

The socket which this is wrapping.

Methods

destroy

  • destroy(): void

Generated using TypeDoc