is there a package for websocket that can be defined globally and used in various components?
for example, how should js definitions in main.js or utils be introduced and used in various components? At the same time to solve the problem of frequent disconnection?