ask for updates on route changes

This commit is contained in:
ntr committed 2022-12-21 23:43:49 +11:00
1 parent 0e785e0c8c
commit 43173a833d
2 files changed
+5

No files matched your search

+3
View File
@@ -1,5 +1,7 @@
import { wantsState, wsState, userState, offersState, acpOffersState } from './store'
import * as toast from './toast';
const SOCKET_URL = `${window.location.protocol === 'https:' ? 'wss://' : 'ws://'}${window.location.host}/api/ws`;
export default function createSocket(dispatch) {
@@ -155,6 +157,7 @@ export default function createSocket(dispatch) {
sendWantRm,
sendOffers,
sendWants,
sendAcpOffers,
sendAcpOfferStatusSet,