Skip to content

Commit

Permalink
feat: websocket plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
InvalidJoker committed Apr 27, 2024
1 parent 5318361 commit d96075c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ["@nuxtjs/tailwindcss"],
plugins: ["~/plugins/websocket.ts"],
});
4 changes: 4 additions & 0 deletions plugins/websocket.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default defineNuxtPlugin(nuxtApp => {
console.log('Hello from websocket plugin')
// Doing something with nuxtApp
})

0 comments on commit d96075c

Please sign in to comment.