Wix Blocks - events.js Backend file - Wix Chat Events

Very simply.

//events.js

export function wixChat_onMessage(event) {
console.log(event);
}

  • A basic function is not firing when in Wix Blocks. However it works fine when I create a events.js file on the site itself and try it.

Wix Blocks says its supports events.js but its not the case.