I am creating a plugin that will emit basic nuxt events triggered by sockets. The nuxt event will then be recieved and open a snackbar. When inside a component it is easy to
You can use something like this in your plugin.js file, what the plugin will do is use window.$nuxt.$emit which is available on the client side
window.$nuxt.$emit
export default function (context) { $nuxt.$emit('event-to-emit') }