Something went wrong. Try again.
Monorepo for the nibling.run platform
Something went wrong. Try again.
12345678910111213141516171819202122232425<!doctype html><html lang="en"><head> <meta charset="utf-8"> <title>@nibling/kernel — node:http</title> <link rel="stylesheet" href="/demo/demo.css"></head><body> <h1>@nibling/kernel — a guest node:http server, rendered in an iframe via the SW virtual origin</h1> <pre id="out"></pre> <pre id="err"></pre> <p>exit: <span id="exit">…</span></p> <small>Guest: <code>http.createServer(...).listen(3000)</code> → page: <code>await runtime.waitForPort(3000)</code> → <code><iframe src="/~/@<host>/http/3000/"></code>. Add <code>?esm</code> for the <code>import http from "node:http"</code> variant.</small>
<script type="importmap"> { "imports": { "@nibling/kernel": "/dist/runtime/host.js" } } </script> <script type="module" src="/demo/http.js"></script></body></html>