connection alert
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user