mirror of
https://github.com/zhaojh329/rttys.git
synced 2026-02-27 09:53:21 +08:00
0ca0086bdd
When WebSocket connection fails due to 403 unauthorized status from server, browser WebSocket API cannot distinguish HTTP status codes and only fires a generic 'error' event. Redirect to /connect/:devid HTTP endpoint so that browser can properly capture and handle the 403 status code response. Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
Vue 3 + Vite
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.
Learn more about IDE Support for Vue in the Vue Docs Scaling up Guide.