New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@xmpp/reconnect

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xmpp/reconnect

XMPP reconnect for JavaScript

latest
Source
npmnpm
Version
0.14.0
Version published
Weekly downloads
11K
26.42%
Maintainers
1
Weekly downloads
 
Created
Source

reconnect

Auto reconnect for @xmpp/client and @xmpp/component.

Included and enabled in @xmpp/component and @xmpp/client.

Supports Node.js and browsers.

Each reconnect will re-use the options provided to the entity start method.

delay property

Property to set/get the delay in milliseconds between connection closed and reconnecting.

Default is 1000.

reconnect.delay; // 1000
reconnect.delay = 2000;

reconnecting event

Emitted each time a re-connection is attempted.

reconnect.on("reconnecting", () => {
  console.log("reconnecting");
});

reconnected event

Emitted each time a re-connection succeed.

reconnect.on("reconnected", () => {
  console.log("reconnected");
});

error event

Emitted on entity each time a re-connection fails.

entity.on("error", (err) => {
  console.error(err);
});

Keywords

XMPP

FAQs

Package last updated on 29 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts