Skip to content

Instantly share code, notes, and snippets.

View richard-edwards's full-sized avatar

Richard Edwards richard-edwards

View GitHub Profile
@richard-edwards
richard-edwards / leaderboard.vue
Last active March 23, 2024 20:02
Supabase Realtime Example
<script setup lang="ts">
import type { RealtimeChannel } from '@supabase/supabase-js'
const route = useRoute()
const { slug }: { slug?: string } = route.params
if (!slug) {
throw createError({
statusCode: 404,
statusMessage: 'Page not found',