chainInfo from server, routes, wallet rework
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import {io} from "socket.io-client";
|
||||
import {useStore} from "@/store/store.js";
|
||||
|
||||
export const socket = io(import.meta.env.VITE_WS_URL || undefined, { transports: ["websocket"] })
|
||||
|
||||
@@ -14,3 +15,7 @@ socket.on('welcome', (data)=>{
|
||||
console.log('welcome',data)
|
||||
})
|
||||
|
||||
socket.on('chainInfo', async (chainInfo)=>{
|
||||
const s = useStore()
|
||||
s.chainInfo = chainInfo
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user