connection alert

This commit is contained in:
tim
2024-08-28 20:35:34 -04:00
parent 8ce7f82098
commit be372098ef
6 changed files with 10 additions and 9 deletions

View File

@@ -8,10 +8,12 @@ export const socket = io(import.meta.env.VITE_WS_URL || undefined, {transports:
socket.on('connect', () => {
console.log(new Date(), 'ws connected')
useStore().connected = true
})
socket.on('disconnect', () => {
console.log(new Date(), 'ws disconnected')
useStore().connected = false
})
socket.on('p', async (chainId, pool, price) => {