How would I listen for a websocket message in Nuxt 3, for user initiated notifications to users?
Hello, as the title described, I have a websocket server, and I would like users to send notifications to eachother and listen for notifications. How would I do this? There's not any utilities I can use in a typical nuxt plugin. Thank you!
2 Replies
Take a look at vueuse https://vueuse.org/core/useWebSocket/
VueUse
Collection of essential Vue Composition Utilities
Thanks! Should I worry about having two websocket clients open? I’m not familiar with the performance impact of websockets.