1.0.1 • Published 4 years ago
cd-ddos-hook v1.0.1
CerberusDDoS Detection Hook
This is an integration for Cerberus Development webhook API.
Example
Non-Custom port and path
const { DDoSHook } = require('cd-ddos-hook');
const checker = new DDoSHook('/receiver', 4000);
checker.start(() => {
console.log('Detection Hook Started...');
});
checker.on("api", (resp) => {
console.log(resp); // Console logs the API response.
});