@evo/chat-core
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -83,2 +83,5 @@ 'use strict'; | ||
key: 'registerHandler', | ||
// improve; make register from obj | ||
value: function registerHandler(name, func) { | ||
@@ -85,0 +88,0 @@ if (!c.ACTION_HANDLERS_LIST.includes(name)) throw new Error(c.ERROR_MSG_HANDLER_UNKNOWN); |
{ | ||
"name": "@evo/chat-core", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "core Besida module with base functional set for chat", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -20,8 +20,5 @@ # @evo/chat-core | ||
const besida = new Besida(swindonObj, BESIDA_ROLE_COMPANY, callBackObj, IS_DEBUG); | ||
const besida = new Besida(swindonObj, BESIDA_ROLE_COMPANY, IS_DEBUG); | ||
besida.registerHandler('message', (topic, message) => action()); | ||
besida.registerHandler('registry', (_, onlines) => action()); | ||
besida.registerHandler('counters', (_, lattice) => action()); | ||
besida.registerHandler('ban', (topic, bans) => action()); | ||
besida.registerHandler('error', (_, error) => action()); | ||
@@ -28,0 +25,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
722
39734
42