How do I get biggest bets like https://bit-exo.com/
They use socket.emit to get weekly biggets, I am trying but nothing occurs.
socket.emit('get_weekly_wager', function(err, data) {
if (err) {
console.log('Error aget_weekly_wager:', err);
return;
}
console.log('Successfully got weekly wager:' , data);
// var user = data.user;
// self.state.user = user;
self.state.weeklydata = data;
self.emitter.emit('change_weekly_wager', self.state);
});
PS: I am connected to socket.