@jcbuisson/express-x-client 1.5.8 → 1.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.mjs +1 -0
package/package.json
CHANGED
package/src/index.mjs
CHANGED
|
@@ -105,6 +105,7 @@ export default function expressXClient(socket, options={}) {
|
|
|
105
105
|
|
|
106
106
|
// on receiving events from pub/sub
|
|
107
107
|
socket.on('service-event', ({ name, action, result }) => {
|
|
108
|
+
if (options.debug) console.log('service-event', name, action, result)
|
|
108
109
|
if (!action2service2handlers[action]) action2service2handlers[action] = {}
|
|
109
110
|
const serviceHandlers = action2service2handlers[action]
|
|
110
111
|
const handler = serviceHandlers[name]
|