const WebSocket = require('ws');
const ws = new WebSocket("wss://kek.win/ws/ru?thresholdTimeout=100&threshold=2");
ws.on('message', msg => {
console.log(msg);
});
let object = ['kek']
ws.on('open', () => {
ws.send(JSON.stringify(object))
})
ws.on('error', data => {
console.log(data);
})