Skip to content

Commit

Permalink
Update index.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
GalacticHypernova authored Jun 13, 2024
1 parent 531fb07 commit aef9671
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/fixtures/xss/pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
<template>
<div>basic</div>
<div>
<button @click="onClick">
Click to emit event
</button>
</div>
</template>

<script lang="ts" setup>
const io = useIO()
const onClick = () => {
const socket = io()
socket.on('connect', () => {
socket.emit('id:req', (res) => {
console.log(res)
})
})
}
</script>

0 comments on commit aef9671

Please sign in to comment.