import { browse } from "./app/utils/.server/mdns/dns_sd/browse"; import { MulticastInterface } from "./app/utils/.server/mdns/mdns/multicast_interface"; for await (const service of browse({ multicastInterface: new MulticastInterface(), service: { type: "http", protocol: "tcp" }, })) { console.log("New Service!", service); } // const server = Bun.serve({ // port: 3000, // fetch(request) { // console.log(new URL(request.url).hostname); // return new Response( // ` // // Spaceship Game Setup // //

One-time setup required

//

To play over a secure connection, install our local certificate:

//
    //
  1. Download the certificate
  2. //
  3. Open the downloaded file and mark it as Trusted
  4. //
  5. Play the game!
  6. //
//

Platform instructions

//
Windows //

Double-click the .crt file → Install Certificate → Local Machine // → Place in "Trusted Root Certification Authorities"

//
//
macOS //

Double-click the .crt → Keychain Access opens → double-click the cert // → expand "Trust" → set "When using this certificate" to "Always Trust"

//
//
Android //

Settings → Security → Install from storage → pick the .crt file

//
//
iOS //

Open the .crt link in Safari → Settings → General → VPN & Device Management // → install the profile → Settings → General → About → Certificate Trust Settings → enable it

//
// // `, // { headers: { "Content-Type": "text/html" } }, // ); // }, // }); // await advertiseMdns(Number(server.url.port)); // console.log(server.url.href);