Skip to content

Instantly share code, notes, and snippets.

View Romejanic's full-sized avatar

Jack Davenport Romejanic

  • Australia
View GitHub Profile
# Built using Svelte and peerjs
<script lang="ts">
import Peer from "peerjs";
import type { DataConnection } from "peerjs";
import { onMount } from "svelte";
type Optional<T> = T | null;
interface Message {
id?: string;
[
{
"country": "Iran",
"advice": "Do not travel"
},
{
"country": "Zimbabwe",
"advice": "Exercise a high degree of caution"
},
{