Skip to content

Commit

Permalink
update playground
Browse files Browse the repository at this point in the history
  • Loading branch information
wobsoriano committed Nov 11, 2024
1 parent 48ae728 commit abba490
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playground/app.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<script setup lang="ts">
const socket = useSocket()
const { $io } = useNuxtApp()
const connected = ref(false)
onMounted(() => {
const socket = $io('http://localhost:3000')
socket.on('connect', () => {
connected.value = socket.connected
})
Expand Down

0 comments on commit abba490

Please sign in to comment.