diff --git a/package.json b/package.json index f2cfa068..9d370236 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@adonisjs/hash": "^9.0.5", "@nuxt/kit": "^3.15.2", "defu": "^6.1.4", - "h3": "^1.13.1", + "h3": "^1.14.0", "hookable": "^5.5.3", "ofetch": "^1.4.1", "ohash": "^1.1.4", diff --git a/playground/app.vue b/playground/app.vue index c04effbd..e8cb4393 100644 --- a/playground/app.vue +++ b/playground/app.vue @@ -201,6 +201,13 @@ const providers = computed(() => external: true, })), ) + +onMounted(() => { + const ws = new WebSocket('/ws') + ws.addEventListener('message', (event) => { + console.log('message', event.data) + }) +})