Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
@convergence/convergence
Advanced tools
Convergence JavaScript Client
Weekly downloads
Readme
This package provides a npm distribution of the Convergence JavaScript API, for use with the Convergence Collaboration Framework.
Convergence is an engine for rapidly developing real-time collaborative applications. At the heart of Convergence is its collaborative real time data store. Where other frameworks stop at attempting to provide real time data, Convergence goes further by providing all the features a developer needs to build an effective and intuitive collaborative application. Some of the feature highlights include:
Convergence provides all of this and more in a single API reducing the time and complexity of gluing multiple frameworks together. With Convergence you can get up and running in hours, instead of months.
npm install --save @convergence/convergence
const Convergence = require("@convergence/convergence").Convergence;
const url = "https://convergence-server.myhost.com/mynamespace/mydomain";
const credentials = { username: "myuser", password: "mypassword" };
Convergence.connectWithPassword(url, credentials).then(domain => {
// open an employee data model.
return domain.models().open("employees", "doe.john");
}).then(model => {
// Get the root elemenet in the model.
const data = model.root();
// Set some data
data.set("fisrtName", "John");
data.set("lastName", "Doe");
// Get the firstName property directly
const firstName = data.elementAt("firstName");
// Rest the first name's value
firstName.value("Dan");
// Listen for course grained changes
firstName.on("value", () => {
console.log(firstName.value)
});
// Insert 'ny' into the string at index 3.
firstName.insert(3, "ny");
// Listen for course grained changes
firstName.on("insert", (evt) => {
console.log(`characters '${evt.value}' added at position (${evt.index})`)
});
});
The full complement of Convergence documentation can be found here:
Convergence requires RxJS 6.x. This dependency is taken care of when using the npm module. If including via a script tag, you must also include rxjs.
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/6.6.3/rxjs.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@convergence/convergence/convergence.global.js"></script>
This will add a Convergence
variable to the global namespace.
There is also an AMD version:
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/6.6.3/rxjs.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@convergence/convergence/convergence.amd.js"></script>
The Convergence JavaScript client is licensed under the Lesser GNU Public License v3 (LGPLv3). This allows developers to use the client without having to release their code under the LGPLv3, assuming they only use the client as a library and do not modify it. Refer to the COPYING and COPYING.LESSER for the specific terms and conditions of the license.
The Convergence Client is also available under a Commercial License. If you are interested in a non-open source license please contact us at Convergence Labs.
FAQs
Convergence JavaScript Client
The npm package @convergence/convergence receives a total of 303 weekly downloads. As such, @convergence/convergence popularity was classified as not popular.
We found that @convergence/convergence demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.