acp listings sync

This commit is contained in:
ntr committed 2022-11-28 10:46:19 +11:00
1 parent 631942bb41
commit dfc783c936
7 files changed
+33 -13

No files matched your search

+5
View File
@@ -50,6 +50,10 @@ export default function createSocket(dispatch) {
send(['AcpOfferStatusSet', { id, status }]);
}
function sendAcpListingsSync() {
send(['AcpListingsSync', {}]);
}
let pongTimeout;
function onPong() {
pongTimeout = setTimeout(sendPing, 5000);
@@ -154,5 +158,6 @@ export default function createSocket(dispatch) {
sendAcpOffers,
sendAcpOfferStatusSet,
sendAcpListingsSync,
};
}