UNPKG
cd-ddos-hook
Version:
latest (1.0.1)
1.0.1
1.0.0
Send/Receiver For DDoS Detection
cd-ddos-hook
/
src
/
Receiver.js
10 lines
(9 loc)
•
233 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
class
Receiver
{
constructor
(packet) {
const
data
= JSON.parse(packet.
data
);
this
.timestamp =
data
.timestamp;
this
.type =
data
.type;
this
.url =
data
.url; } } module.exports = Receiver