Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
// Sandbox fixture: a plugin that wedges the worker in an infinite loop. Proves the host can force-
// terminate a runaway untrusted plugin (the loop blocks the worker event loop, so cooperative
// shutdown is impossible — only terminate() reclaims it).
module.exports = class RunawayPlugin {
async onEnable() {
// eslint-disable-next-line no-constant-condition
while (true) {
/* spin forever */
}
}
};