Skip to content

Commit

Permalink
chore: update playground
Browse files Browse the repository at this point in the history
  • Loading branch information
sandros94 committed Jun 2, 2024
1 parent 69c3cf1 commit b2f88d5
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions playground/pages/ws-examples.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,14 @@
<pre>
{{ data }}
</pre>
<button @click="userInfo">
<button @click="info()">
Get user info
</button>
</div>
</template>

<script setup lang="ts">
const { data, rpc } = useSurrealWS('staging')
const { data, info, live } = useSurrealWS('staging')
rpc({
method: 'live',
params: ['products'],
})
function userInfo() {
rpc({
method: 'info',
})
}
live('products')
</script>

0 comments on commit b2f88d5

Please sign in to comment.