throttle /lobby/seeks XHR

pull/7384/head
Thibault Duplessis 2020-09-29 15:54:55 +02:00
parent 4f60de03b3
commit ca125c99b2
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,8 @@
import * as xhr from 'common/xhr';
import throttle from 'common/throttle';
import { Pool } from './interfaces';
export const seeks = () => xhr.json('/lobby/seeks');
export const seeks = throttle(2000, () => xhr.json('/lobby/seeks'));
export const nowPlaying = () => xhr.json('/account/now-playing').then(o => o.nowPlaying);