KUN1007 / kun-galgame-nuxt3

The CUTEST Visual Novel / Galgame Forum! KUN Visual Novel project. KUN Visual Novel Forum 2nd generation!
https://www.kungal.com
GNU Affero General Public License v3.0
506 stars 32 forks source link

The use of WebSocket or Socket.IO in Nuxt3 #38

Closed KUN1007 closed 4 months ago

KUN1007 commented 5 months ago

In our current project, we need to handle real-time messages, so WebSocket is required. In the current version (2.8.10), we have used Socket.IO as our choice for message notifications. However, we cannot properly adapt it to Nuxt3. Although the current project does not throw errors, after updating all package versions to the latest(such as Nuxt 3.11.x), there are still some temporarily unresolved errors, such as: socket__io-client WebSocket connection to failed: Invalid frame header. We apologize for this inconvenience. If you have experience with WebSocket or Socket.IO, please feel free to contact us.

KUN1007 commented 4 months ago

We have currently abandoned the use of Socket.IO in Nuxt3 and plan to directly use the WebSocket provided by Nitro in the future.