Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Javascript library to communicate with Centrifugo HTTP API.
$ npm i cent.js
First see available API methods in documentation.
This library contains CentClient
class to send messages to Centrifugo from your node-powered backend:
const {CentClient} = require('cent.js');
// Initialize client instance.
const client = new CentClient({
url: 'http://localhost:8000/api',
apiKey: 'XXX'
});
// Publish data into channel
const publishRes = await client.publish({
channel: 'public:chat',
data: {input: "test"}
}).catch(err => handleError()); // We throw error in case of unsuccessful
// response from Centrifugo or some other
// internal errors.
// Other available methods
await client.unsubscribe({user: 'user_id', channel: 'channel'});
await client.disconnect({user: 'user_id'})
await client.getHistory({channel: 'channel'})
await client.getPresence({channel: 'channel'})
await client.getChannels()
await client.getInfo()
await client.removeHistory({channel: 'channel'})
FAQs
Javascript library to communicate with Centrifugo HTTP API
The npm package cent.js receives a total of 469 weekly downloads. As such, cent.js popularity was classified as not popular.
We found that cent.js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.