Skip to content

Commit abba490

Browse files
committed
update playground
1 parent 48ae728 commit abba490

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

playground/app.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<script setup lang="ts">
2-
const socket = useSocket()
2+
const { $io } = useNuxtApp()
33
44
const connected = ref(false)
55
66
onMounted(() => {
7+
const socket = $io('http://localhost:3000')
8+
79
socket.on('connect', () => {
810
connected.value = socket.connected
911
})

0 commit comments

Comments
 (0)