Socket
Socket
Sign inDemoInstall

strophe.js

Package Overview
Dependencies
9
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    strophe.js

Strophe.js is an XMPP library for JavaScript


Version published
Weekly downloads
8.5K
decreased by-3.42%
Maintainers
3
Install size
5.50 MB
Created
Weekly downloads
 

Changelog

Source

Version 2.0.0 - (2024-02-21)

  • Type checking via TypeScript and JSDoc typing annotations
  • Types definitions are now generated and placed in ./dist/types/.
  • Remove the deprecated matchBare option for Strophe.Handler. Use matchBareFromJid instead.
  • Add the ability to create stanzas via a tagged template literal (stx).
  • Bugfix: Ignore unknown SCRAM attributes instead of aborting the connection

Readme

Source

Strophe.js

Build Status

Strophe.js is a JavaScript library for speaking XMPP via BOSH (XEP 124 and XEP 206) and WebSockets (RFC 7395).

It runs in both NodeJS and in web browsers, and its purpose is to enable real-time XMPP applications.

Support in different environments

Browsers

Versions <= 1.2.16 have been tested on Firefox, Firefox for Android, IE, Safari, Mobile Safari, Chrome, Chrome for Android, Opera and the mobile Opera browser.

Since version 1.3.0, support for IE < 11 has been dropped.

React Native

Since version 1.6.0 the WebCrypto API (included by default in Browsers and NodeJS) is used for crypto primitives such as hashing and signatures. Unfortunately this API is not available in React Native, and integrators will need to look for a 3rd party implementations of this API if they want to use Strophe there.

Running tests

You can run npm run test, or alternatively if you have GNU Make available, you can run make check.

License

Strophe.js is licensed under the MIT license.

Author & History

Strophe.js was created by Jack Moffitt. It was originally developed for Chesspark, an online chess community based on XMPP technology. It has been cared for and improved over the years and is currently maintained by many people in the community.

The book Professional XMPP Programming with JavaScript and jQuery covers Strophe in detail in the context of web applications.

Keywords

FAQs

Last updated on 21 Feb 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc