知其然
知其然
> 需要在./frontend文件中配置VITE_WS_BACKEND_URL=ws://IP_address:7001。这里的IP_address应该配置为外部IP。 更新代码后,需要运行 docker-compose up -d --build 直接在本地启动的,没有使用docker呢
> > > 需要在./frontend文件中配置VITE_WS_BACKEND_URL=ws://IP_address:7001。这里的IP_address应该配置为外部IP。 更新代码后,需要运行 docker-compose up -d --build > > > > > > 直接在本地启动的,没有使用docker呢 > > 无论是否使用docker 目前那个ip_address 的用外网ip ,局域网IP是不行的 可是我的服务不是启动在本机的嘛?按理这里前端websocket连的应该127.0.0.1吗没问题才对啊?
> First of all, are you using a transit or direct connection? Second, check whether the key is normal. 1006 does not necessarily mean that the backend cannot be connected,...
> When you go to the backend url in the browser, what do you see? Your backend is running correctly. Please open the front-end URL (default is http://localhost:5173) to use...
我也是,经常会出现输入内容后消息发不出去