defer-to-connect

  • Version 2.0.1
  • Published
  • 5.44 kB
  • No dependencies
  • MIT license

Install

npm i defer-to-connect
yarn add defer-to-connect
pnpm add defer-to-connect

Overview

The safe way to handle the `connect` socket event

Index

Functions

function deferToConnect

deferToConnect: (
socket: TLSSocket | Socket,
fn: Listeners | (() => void)
) => void;

    Package Files (1)

    Dependencies (0)

    No dependencies.

    Dev Dependencies (14)

    Peer Dependencies (0)

    No peer dependencies.

    Badge

    To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

    You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/defer-to-connect.

    • Markdown
      [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/defer-to-connect)
    • HTML
      <a href="https://www.jsdocs.io/package/defer-to-connect"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>