Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

castle-chat-lib

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

castle-chat-lib - npm Package Compare versions

Comparing version 2.15.0 to 2.16.0

2

package.json
{
"name": "castle-chat-lib",
"version": "2.15.0",
"version": "2.16.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -78,2 +78,3 @@ import _ from 'lodash';

channel_online_counts: msg.channel_online_counts,
channel_online_user_ids: msg.channel_online_user_ids,
});

@@ -83,2 +84,11 @@ }

});
this._socket.on('update', (msg) => {
try {
if (this._updateHandler) {
let parsedUpdate = JSON.parse(msg);
this._updateHandler(parsedUpdate.type, parsedUpdate.body);
}
} catch (e) {}
});
}

@@ -135,2 +145,6 @@

setOnUpdateHandler(handler) {
this._updateHandler = handler;
}
unseeChatMessageIds(chatMessageIds) {

@@ -137,0 +151,0 @@ for (let i = 0; i < chatMessageIds.length; i++) {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc